public class ProError extends BaseObject implements LegacyError
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.
|
protected 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 |
__lang_ProError_execute__()
The 'execute' method.
|
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 |
setSeverity(integer s)
Set the error's severity.
|
protected boolean |
validIndex(integer idx)
Check if the specified index is valid for
errors . |
__lang_BaseObject_constructor__, __lang_BaseObject_execute__, assertNotNull, assertNotNull, clone, getLegacyClass, getNextSibling, getPrevSibling, legacyEquals, toLegacyString
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
__lang_BaseObject_constructor__, clone, getLegacyClass, getNextSibling, getPrevSibling, isTracked, legacyEquals, toLegacyString
protected final integer severity
protected final 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()
public void __lang_ProError_execute__()
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 LegacyError
public character getCallStack()
getCallStack
in interface LegacyError
public 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 LegacyError
public void setSeverity(integer s)
setSeverity
in interface LegacyError
s
- The severity.public character getMessage(integer idx)
getMessage
in interface LegacyError
idx
- The message index.public integer getMessageNum(integer idx)
getMessageNum
in interface LegacyError
idx
- The message index.public void addMessage(character msg, integer num)
msg
- The error message.num
- The error message number.