eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'OSErrorHolder':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: OSErrorHolder


Inheritance:

   Object
   |
   +--OSErrorHolder

Package:
stx:libbasic
Category:
OS-Support
Version:
rev: 1.34 date: 2022/12/02 12:09:06
user: stefan
file: OSErrorHolder.st directory: libbasic
module: stx stc-classLibrary: libbasic

Description:


This class represents low level operating system errors.
We do not use error numbers, because there may be different errnos
for the same error on different systems.

[instance variables:]
    errorSymbol             symbol associated with this error
    errorCategory           symbol defining the error category.
                            This is in fact a symbol that returns a
                            Signal when sent to myself.

    While the errorSymbol may be different on different platforms,
    the errorCategories (which refer to the Signals that will be raised)
    are identical.
    You can get an OS independent error message for an error by sending
    #errorCategoryString.

copyright

COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger 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.

Class protocol:

Signal constants
o  allocRetrySignal

o  badAccessorSignal

o  badArgumentsSignal

o  classNotRegisteredSignal

o  coNotInitializedSignal

o  defaultOsErrorSignal

o  errorSignal
(comment from inherited method)
return the signal used for error/error: - handling

o  existingReferentSignal

o  illegalOperationSignal

o  inaccessibleSignal

o  inappropriateOperationSignal

o  inappropriateReferentSignal

o  invalidArgumentsSignal
return the signal for invalid arguments (e.g. right class, wrong value).

o  needRetrySignal

o  noAggregationSignal

o  noAssociationSignal

o  noDataSignal

o  noInterfaceSignal

o  noMemorySignal

o  noPermissionsSignal

o  noResourcesSignal

o  noVerbsSignal

o  nonexistentSignal
return the signal for non existing referents (i.e. device, file etc.).

o  notReadySignal

o  peerFaultSignal

o  rangeErrorSignal

o  signalNamed: signalName

o  signals

o  transferFaultSignal

o  transientErrorSignal

o  unavailableReferentSignal

o  underSpecifiedSignal

o  unknownNameSignal

o  unpreparedOperationSignal

o  unsupportedOperationSignal

o  volumeFullSignal

o  wrongSubtypeForOperationSignal

class initialization
o  initializeSignals
init signals etc.

Usage example(s):

Signals := nil. self initializeSignals. 

Usage example(s):

     Signals := nil.
     self initializeSignals

o  setupSignal: aSymbol parent: parentSignal notifier: aString
setup a signal, which can be retrieved by sending aSymbol to self.
Return the new signal

instance creation
o  errorNumber: num errorSymbol: sym errorCategory: typ

o  errorSymbol: sym errorCategory: typ

o  unsupportedOperation


Instance protocol:

accessing
o  errorCategory

o  errorNumber

o  errorNumber: num errorSymbol: sym errorCategory: typ

o  errorSymbol

o  errorSymbol: sym errorCategory: typ

o  parameter

o  parameter: something

error reporting
o  reportError
Report an error.

Usage example(s):

      (OperatingSystem errorHolderForNumber:22) reportError

o  reportError: errorMessage
Report an error. Show insert errorMessage into error string.

o  reportProceedableError
Report an error.

o  reportProceedableError: errorMessage
Report an error. Show insert errorMessage into error string.

others
o  description

o  errorString

printing
o  printOn: aStream
(comment from inherited method)
append a user printed representation of the receiver to aStream.
The format is suitable for a human - not meant to be read back.

The default here is to output the receiver's class name.
BUT: this method is heavily redefined for objects which
can print prettier.

private
o  makeErrorStringFor: aString
Private: compute an errorString from myself and aString

testing
o  isOSErrorHolder



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:37:13 GMT