public class ProError extends BaseObject implements LegacyError, java.io.Externalizable
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
callStack
The call stack at the time the error was thrown.
|
protected java.util.List<NumberedException> |
errors
The recorded errors.
|
private integer |
severity
The severity property.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ProError()
Implicit constructor used by sub-classes.
|
|
ProError(NumberedException error)
Create a new instance with the specified error.
|
|
ProError(NumberedException[] errors)
Create a new instance with the specified errors.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
__lang_ProError_constructor__()
Implicit, no parameter, method associated with the implicit legacy constructor for the
Progress.Lang.ProError class. |
protected void |
__lang_ProError_constructor__(character _msg,
integer _num)
Explicit method associated with a legacy constructor for the
Progress.Lang.ProError class. |
void |
addMessage(character msg,
integer num)
Implementation of the AddMessage legacy method.
|
character |
getCallStack()
Get the call stack.
|
character |
getMessage(integer idx)
Definition of the GetMessage legacy method.
|
integer |
getMessageNum(integer idx)
Implementation of the GetMessageNum legacy method.
|
integer |
getNumMessages()
Get the number of messages.
|
integer |
getSeverity()
Get the error's severity.
|
void |
populateCallStack()
Populate the
callStack traces. |
void |
readExternal(java.io.ObjectInput in)
The object implements the readExternal method to restore its
contents by calling the methods of DataInput for primitive
types and readObject for objects, strings and arrays.
|
void |
setSeverity(integer s)
Set the error's severity.
|
protected boolean |
validIndex(integer idx)
Check if the specified index is valid for
errors. |
void |
writeExternal(java.io.ObjectOutput out)
The object implements the writeExternal method to save its contents
by calling the methods of DataOutput for its primitive values or
calling the writeObject method of ObjectOutput for objects, strings,
and arrays.
|
__isValidInternal__, __lang_BaseObject_constructor__, __setValidInternal__, assertNotNull, assertNotNull, getLegacyClass, getNextSibling, getPrevSibling, legacyClone, legacyEquals, toLegacyStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait__isValidInternal__, __lang_BaseObject_constructor__, __setValidInternal__, getLegacyClass, getNextSibling, getPrevSibling, isTracked, legacyClone, legacyEquals, toLegacyStringprivate integer severity
protected java.util.List<NumberedException> errors
private java.lang.String callStack
public ProError(NumberedException error)
error - The legacy error.public ProError(NumberedException[] errors)
errors - The legacy errors.protected ProError()
protected void __lang_ProError_constructor__()
Progress.Lang.ProError class.protected void __lang_ProError_constructor__(character _msg, integer _num)
Progress.Lang.ProError class._msg - The message._num - The message number.public integer getNumMessages()
getNumMessages in interface LegacyErrorpublic character getCallStack()
getCallStack in interface LegacyErrorpublic void populateCallStack()
callStack traces. Any existing callstack will be assumed to be the server's
stacktrace from the remote call.public integer getSeverity()
getSeverity in interface LegacyErrorpublic void setSeverity(integer s)
setSeverity in interface LegacyErrors - The severity.public character getMessage(integer idx)
getMessage in interface LegacyErroridx - The message index.public integer getMessageNum(integer idx)
getMessageNum in interface LegacyErroridx - The message index.public void addMessage(character msg, integer num)
msg - The error message.num - The error message number.public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - the stream to write the object tojava.io.IOException - Includes any I/O exceptions that may occurpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - the stream to read data from in order to restore the objectjava.io.IOException - if I/O errors occurjava.lang.ClassNotFoundException - If the class for an object being
restored cannot be found.