|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.redhat.rhn.FaultException
public class FaultException
Generic XML RPC fault
| Field Summary | |
|---|---|
protected int |
errorCode
|
protected java.lang.String |
label
|
| Constructor Summary | |
|---|---|
FaultException(int error,
java.lang.String lbl,
java.lang.String message)
Constructor |
|
FaultException(int error,
java.lang.String lbl,
java.lang.String messageId,
java.lang.Object[] args)
Constructor |
|
FaultException(int error,
java.lang.String lbl,
java.lang.String message,
java.lang.Throwable cause)
Constructor |
|
| Method Summary | |
|---|---|
int |
getErrorCode()
Returns the value of errorCode |
java.lang.String |
getLabel()
Returns the value of label |
void |
setErrorCode(int error)
Sets the errorCode to the given value. |
void |
setLabel(java.lang.String lbl)
Sets the label to the given value. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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 |
|---|
protected int errorCode
protected java.lang.String label
| Constructor Detail |
|---|
public FaultException(int error,
java.lang.String lbl,
java.lang.String message)
error - error codelbl - error labelmessage - the message
public FaultException(int error,
java.lang.String lbl,
java.lang.String messageId,
java.lang.Object[] args)
error - error codelbl - error labelmessageId - the string resource message IDargs - arguments to be passed to the localization service
public FaultException(int error,
java.lang.String lbl,
java.lang.String message,
java.lang.Throwable cause)
error - error codelbl - error labelmessage - the messagecause - 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.)| Method Detail |
|---|
public int getErrorCode()
public void setErrorCode(int error)
error - error codepublic java.lang.String getLabel()
public void setLabel(java.lang.String lbl)
lbl - error label
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||