public class FdkExceptionEntry extends Object implements Serializable
Constructor and Description |
---|
FdkExceptionEntry()
Constructor required to be a Java Bean.
|
FdkExceptionEntry(AggregateExceptionEntry aee)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
cause()
Returns the cause exception of this entry or
null if the
entry was not caused by another exception. |
static FdkExceptionEntry[] |
convert(Throwable t)
Converts a Throwable into an FdkExceptionEntry[].
|
String |
getDetailedErrorCode()
Returns the detailed error code that may provide more information about
the error.
|
String |
getErrorCode()
Returns the main error code.
|
long |
getId()
Returns the ID of the item for which the error occured.
|
NamedValue[] |
getInfo()
Returns additional information about the error or
null if
no additional information is available. |
String |
getServerStackTraceId()
Returns the server stack trace ID for this entry.
|
Map |
infoMap()
Returns additional information about the error or
null if
no additional information is available. |
void |
setDetailedErrorCode(String errorCode)
Always throws a RuntimeException.
|
void |
setErrorCode(String errorCode)
Always throws a RuntimeException.
|
void |
setId(long id)
Always throws a RuntimeException.
|
void |
setInfo(NamedValue[] info)
Always throws a RuntimeException.
|
void |
setServerStackTraceId(String id)
Always throws a RuntimeException.
|
String |
toString()
Returns a string representation of this entry without the stack trace
of the cause exception.
|
String |
toStringWithStackTrace()
Returns a string representation of this entry with the stack trace
of the cause exception, if any.
|
public FdkExceptionEntry()
RuntimeException
- Always.public FdkExceptionEntry(AggregateExceptionEntry aee)
aee
- The AggregateExceptionEntry this entry corresponds to.public static FdkExceptionEntry[] convert(Throwable t)
Note that this method will not log any exceptions to the log file, including severe or server errors. It is the responsibility of the caller to do such logging if desired.
t
- The Throwable to convert.public String getErrorCode()
public void setErrorCode(String errorCode)
RuntimeException
- Always.public String getDetailedErrorCode()
public void setDetailedErrorCode(String errorCode)
RuntimeException
- Always.public long getId()
public void setId(long id)
RuntimeException
- Always.public NamedValue[] getInfo()
null
if
no additional information is available.public Map infoMap()
null
if
no additional information is available. The result is the same as
calling getInfo()
except the return type is a
Map
for convenience.public void setInfo(NamedValue[] info)
RuntimeException
- Always.public String getServerStackTraceId()
cause()
.public void setServerStackTraceId(String id)
RuntimeException
- Always.public Throwable cause()
null
if the
entry was not caused by another exception.public String toString()
public String toStringWithStackTrace()
Copyright © 2023. All rights reserved.