public class GbjException extends RuntimeException
Modifier and Type | Field and Description |
---|---|
int |
argCount
The size of args[]
|
Object[] |
args
An array of references to the arguments of the exception
|
GbjObject |
category
Holds a reference to the category (signalDictionary) of the exception.
|
boolean |
fatal
Tells you whether the exception was a fatal error.
|
static GbjGemStoneErrors |
kernel
Holds an extensive list of error numbers for GbjExceptions of
category GemStoneError.
|
String |
message
Holds a displayable representation of the exception
|
int |
number
Holds the number of the exception.
|
GbjObject |
process
The suspended state of execution on the server at the time the exception
was thrown.
|
GbjSession |
session
The session in which the exception occurred.
|
GbjObject |
stackTrace
Deprecated.
A stack trace can be obtained from the process object
by sending it the message printString().
|
Constructor and Description |
---|
GbjException(GbjGciException e)
Construct an instance from information coming from the GbjGciInterface
|
GbjException(GbjSession s,
GbjGciException e) |
GbjException(String msg)
Construct an instance with specified message.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
return the error message held by the receiver.
|
boolean |
isAbortingException()
is this an Aborting exception - an exception associated with a rolled back
transaction in the server?
|
boolean |
isCompilerException()
is this a Smalltalk compilation exception?
|
boolean |
isEventException()
is this an Event exception - a signal or debugging event?
|
boolean |
isFatalException()
is this a Fatal exception - one that terminated the connection or
otherwise rendered it unusable?
|
boolean |
isInternalException()
is this an Internal exception - one that signals an internal problem in
the GemStone server or interface?
|
boolean |
isRuntimeException()
is this a Smalltalk execution exception?
|
void |
printStackTrace(PrintWriter s)
print a stack trace on the given stream
|
void |
saveProcess()
causes the exception's Smalltalk process to be saved in the server's export
set even if this exception object is reclaimed as garbage.
|
void |
setMessage(String aString)
Set the GemStone exception message text.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
public static final GbjGemStoneErrors kernel
GbjSession.kernel
,
GbjKernelObjects
,
GbjGemStoneErrors
public String message
public GbjObject category
public int number
public Object[] args
public int argCount
public boolean fatal
public GbjObject process
saveProcess()
public GbjSession session
public GbjObject stackTrace
process
,
GbjObject.printString()
public GbjException(String msg)
msg
- String containing messagepublic GbjException(GbjGciException e)
e
- GbjGciExceptionpublic GbjException(GbjSession s, GbjGciException e)
public String getMessage()
getMessage
in class Throwable
public void printStackTrace(PrintWriter s)
printStackTrace
in class Throwable
public boolean isCompilerException()
public boolean isRuntimeException()
public boolean isAbortingException()
public boolean isFatalException()
public boolean isInternalException()
public boolean isEventException()
public void setMessage(String aString)
aString
- Message textpublic void saveProcess()