InvalidWriteError.st
author Stefan Vogel <sv@exept.de>
Wed, 15 Apr 2020 20:18:14 +0200
changeset 25357 cec6ca6e3af4
parent 25175 9aa9e229640b
permissions -rw-r--r--
#BUGFIX by stefan class: FileStream changed: #copy:into:bufferSize: Unix: check that UnixOperatingSystem class >> #copyFromFd:toFd:startIndex:count: copied all the data
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8728
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
     1
"
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
     2
 COPYRIGHT (c) 2004 by eXept Software AG
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
     3
              All Rights Reserved
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
     4
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
     5
 This software is furnished under a license and may be used
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
     6
 only in accordance with the terms of that license and with the
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
     8
 be provided or otherwise made available to, or used by, any
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
     9
 other person.  No title to or ownership of the software is
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
    10
 hereby transferred.
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
    11
"
8068
4d18d2a101c9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libbasic' }"
4d18d2a101c9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
25175
9aa9e229640b #OTHER by exept
Claus Gittinger <cg@exept.de>
parents: 17156
diff changeset
    14
"{ NameSpace: Smalltalk }"
9aa9e229640b #OTHER by exept
Claus Gittinger <cg@exept.de>
parents: 17156
diff changeset
    15
8068
4d18d2a101c9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
WriteError subclass:#InvalidWriteError
4d18d2a101c9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
4d18d2a101c9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
4d18d2a101c9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
4d18d2a101c9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	category:'Kernel-Exceptions-Errors'
4d18d2a101c9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
4d18d2a101c9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
8728
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
    23
!InvalidWriteError class methodsFor:'documentation'!
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
    24
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
    25
copyright
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
    26
"
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
    27
 COPYRIGHT (c) 2004 by eXept Software AG
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
    28
              All Rights Reserved
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
    29
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
    30
 This software is furnished under a license and may be used
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
    31
 only in accordance with the terms of that license and with the
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
    33
 be provided or otherwise made available to, or used by, any
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
    34
 other person.  No title to or ownership of the software is
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
    35
 hereby transferred.
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
    36
"
17156
1572440fc5bd class: InvalidWriteError
Claus Gittinger <cg@exept.de>
parents: 8728
diff changeset
    37
!
1572440fc5bd class: InvalidWriteError
Claus Gittinger <cg@exept.de>
parents: 8728
diff changeset
    38
1572440fc5bd class: InvalidWriteError
Claus Gittinger <cg@exept.de>
parents: 8728
diff changeset
    39
documentation
1572440fc5bd class: InvalidWriteError
Claus Gittinger <cg@exept.de>
parents: 8728
diff changeset
    40
"
1572440fc5bd class: InvalidWriteError
Claus Gittinger <cg@exept.de>
parents: 8728
diff changeset
    41
    raised when writing to readonly streams
1572440fc5bd class: InvalidWriteError
Claus Gittinger <cg@exept.de>
parents: 8728
diff changeset
    42
"
8728
d70396dc4e96 copyright
Claus Gittinger <cg@exept.de>
parents: 8513
diff changeset
    43
! !
8068
4d18d2a101c9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
25175
9aa9e229640b #OTHER by exept
Claus Gittinger <cg@exept.de>
parents: 17156
diff changeset
    45
!InvalidWriteError class methodsFor:'initialization'!
9aa9e229640b #OTHER by exept
Claus Gittinger <cg@exept.de>
parents: 17156
diff changeset
    46
9aa9e229640b #OTHER by exept
Claus Gittinger <cg@exept.de>
parents: 17156
diff changeset
    47
initialize
9aa9e229640b #OTHER by exept
Claus Gittinger <cg@exept.de>
parents: 17156
diff changeset
    48
    NotifierString := 'stream does not support writing'.
9aa9e229640b #OTHER by exept
Claus Gittinger <cg@exept.de>
parents: 17156
diff changeset
    49
! !
9aa9e229640b #OTHER by exept
Claus Gittinger <cg@exept.de>
parents: 17156
diff changeset
    50
8513
aa129fd0e35e Add description methods
Stefan Vogel <sv@exept.de>
parents: 8068
diff changeset
    51
!InvalidWriteError methodsFor:'printing & storing'!
aa129fd0e35e Add description methods
Stefan Vogel <sv@exept.de>
parents: 8068
diff changeset
    52
aa129fd0e35e Add description methods
Stefan Vogel <sv@exept.de>
parents: 8068
diff changeset
    53
description
aa129fd0e35e Add description methods
Stefan Vogel <sv@exept.de>
parents: 8068
diff changeset
    54
    ^ super description, ': ', parameter classNameWithArticle
aa129fd0e35e Add description methods
Stefan Vogel <sv@exept.de>
parents: 8068
diff changeset
    55
! !
aa129fd0e35e Add description methods
Stefan Vogel <sv@exept.de>
parents: 8068
diff changeset
    56
8068
4d18d2a101c9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
!InvalidWriteError class methodsFor:'documentation'!
4d18d2a101c9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
4d18d2a101c9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
version
25175
9aa9e229640b #OTHER by exept
Claus Gittinger <cg@exept.de>
parents: 17156
diff changeset
    60
    ^ '$Header$'
8068
4d18d2a101c9 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
! !
17156
1572440fc5bd class: InvalidWriteError
Claus Gittinger <cg@exept.de>
parents: 8728
diff changeset
    62
25175
9aa9e229640b #OTHER by exept
Claus Gittinger <cg@exept.de>
parents: 17156
diff changeset
    63
9aa9e229640b #OTHER by exept
Claus Gittinger <cg@exept.de>
parents: 17156
diff changeset
    64
InvalidWriteError initialize!