public class EidRuntimeException extends RuntimeException implements EidContainer
This exception class is baseline of all Eid runtime exception classes. It is designed to ease of use and provide strict ID for given Exception usage. This approach speed up development of large application and helps support teams to by giving the both static and random ID for each possible unpredicted bug.
This is best to use with tools and plugins like EidGenerator for Netbeans IDE
Caution! There is no constructor with just a string, for reason that this forces users to add Eid in all
places that earlier uses RuntimeException.
For convenience use EidPreconditions
| Constructor and Description |
|---|
EidRuntimeException(Eid id)
Constructs a new runtime exception with the specified Eid object
|
EidRuntimeException(Eid id,
String messageFormat,
Object... parameters)
Constructs a new runtime exception with specified Eid object and custom message
The detail message is computed as:
String.format(Eid.getMessageFormat(), id.toString(), String.format(messageFormat, parameters))
|
EidRuntimeException(Eid id,
Throwable cause)
Constructs a new runtime exception with the specified Eid object and cause
The detail message is computed as String.format(Eid.getMessageFormat(), id.toString(), message(cause))
|
EidRuntimeException(String eid,
String ref)
Constructs a new runtime exception with the specified exception Id and ref code.
|
EidRuntimeException(String eid,
String ref,
Throwable cause)
Constructs a new runtime exception with the specified a exception Id, ref code and cause.
|
EidRuntimeException(String eid,
Throwable cause)
Constructs a new runtime exception with the specified cause, a exception Id and detail message of eid.toString() + " =>
" + (cause==null ?
|
| Modifier and Type | Method and Description |
|---|---|
Eid |
getEid()
Retrieves a Eid object
|
Class<? extends RuntimeException> |
getStandardJdkClass()
Returns a standard JDK class that this ones is base on.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic EidRuntimeException(String eid, String ref)
Throwable.initCause(java.lang.Throwable).eid - exception IDref - the ref code for Eidpublic EidRuntimeException(String eid, Throwable cause)
eid - exception IDcause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null
value is permitted, and indicates that the cause is nonexistent or unknown.)public EidRuntimeException(String eid, String ref, Throwable cause)
eid - exception IDref - the ref code for Eidcause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or unknown.)public EidRuntimeException(Eid id)
id - exception IDpublic EidRuntimeException(Eid id, Throwable cause)
The detail message is computed as String.format(Eid.getMessageFormat(), id.toString(), message(cause))
id - exception IDcause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or unknown.)public EidRuntimeException(Eid id, String messageFormat, Object... parameters)
The detail message is computed as:
String.format(Eid.getMessageFormat(), id.toString(), String.format(messageFormat, parameters))
id - exception IDmessageFormat - message format in form of String.format(String, Object...)parameters - parameters in form of String.format(String, Object...)public Eid getEid()
EidContainergetEid in interface EidContainerpublic Class<? extends RuntimeException> getStandardJdkClass()
RuntimeException class.Copyright © 2015. All Rights Reserved.