|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
net.firstpartners.rp.common.exception.RpException
public class RpException
RP specific exception
| Field Summary | |
|---|---|
private java.lang.String |
code
key to error text found in messages.properties file |
private java.lang.Object[] |
values
Object array that will be used if there are any variables in the error text |
| Constructor Summary | |
|---|---|
RpException(java.lang.String p_code)
Creates a new RpException object. |
|
RpException(java.lang.String code,
java.lang.Object[] values)
Creates a new RpException object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getMessage()
Return the string of the message, in case that the message code not exists the message will SYSTEM:No such code |
java.lang.String |
getMessage(java.lang.String defaultMessage)
Return the string of the message, in case that the message code not exists the default message will be used |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String code
private java.lang.Object[] values
| Constructor Detail |
|---|
public RpException(java.lang.String code,
java.lang.Object[] values)
code - Code of the exceptionvalues - List of the attributes valuespublic RpException(java.lang.String p_code)
p_code - Code of exception| Method Detail |
|---|
public java.lang.String getMessage(java.lang.String defaultMessage)
defaultMessage - Used to generate the message
public java.lang.String getMessage()
getMessage in class java.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||