public class GbjException
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
int |
argCount
The size of args[]
|
java.lang.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.
|
java.lang.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.
|
java.lang.String |
stackReport
Smalltalk stack or null, requires
System gemConfigurationAt:#GemExceptionSignalCapturesStack put: true
to have been executed, such as via UserProfile >> loginHook:
|
GbjObject |
stackTrace
Deprecated.
use stackReport
|
Constructor and Description |
---|
GbjException()
Construct an instance that will be filled in by another
|
GbjException(GbjGciException e)
Construct an instance from information coming from the GbjGciInterface
|
GbjException(GbjSession s,
GbjGciException e) |
GbjException(GbjSession s,
java.lang.String msg) |
GbjException(java.lang.String msg)
Construct an instance with specified message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.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() |
void |
printStackTrace(java.io.PrintStream s) |
void |
printStackTrace(java.io.PrintWriter s) |
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(java.lang.String aString)
Set the GemStone exception message text.
|
public static final GbjGemStoneErrors kernel
GbjSession.kernel
,
GbjKernelObjects
,
GbjGemStoneErrors
public java.lang.String message
public GbjObject category
public int number
public java.lang.Object[] args
public int argCount
public boolean fatal
public GbjObject process
saveProcess()
public GbjSession session
@Deprecated public GbjObject stackTrace
public java.lang.String stackReport
public GbjException()
public GbjException(java.lang.String msg)
msg
- String containing messagepublic GbjException(GbjSession s, java.lang.String msg)
public GbjException(GbjGciException e)
e
- GbjGciExceptionpublic GbjException(GbjSession s, GbjGciException e)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public boolean isCompilerException()
public boolean isRuntimeException()
public boolean isAbortingException()
public boolean isFatalException()
public boolean isInternalException()
public boolean isEventException()
public void setMessage(java.lang.String aString)
aString
- Message textpublic void saveProcess()
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream s)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class java.lang.Throwable