StreamNotOpenError.st
author Claus Gittinger <cg@exept.de>
Thu, 15 Aug 2019 14:05:21 +0200
changeset 24544 41e1b5b7b308
parent 24509 30658b2817ac
child 25173 9ef97d4ba8ea
permissions -rw-r--r--
#BUGFIX by exept class: StreamNotOpenError changed: #description do not ask parameter for isEmpty; it could be a non-positionable stream, trying to position and raising an error.

"
 COPYRIGHT (c) 2004 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
"{ Package: 'stx:libbasic' }"

"{ NameSpace: Smalltalk }"

StreamError subclass:#StreamNotOpenError
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'Kernel-Exceptions-Errors'
!

!StreamNotOpenError class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 2004 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
! !

!StreamNotOpenError methodsFor:'printing & storing'!

description
    (parameter isStream not and:[parameter notEmptyOrNil]) ifTrue:[
        ^ super description, ': ', parameter classNameWithArticle.
    ].
    ^ super description.

    "Modified: / 08-08-2019 / 16:15:17 / Stefan Vogel"
! !

!StreamNotOpenError class methodsFor:'documentation'!

version
    ^ '$Header$'
! !