com.redhat.rhn
Class FaultException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.redhat.rhn.FaultException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ActivationKeyAlreadyExistsException, ChannelSubscriptionException, DuplicateChannelLabelException, DuplicateErrataException, InvalidActionTypeException, InvalidAdvisoryTypeException, InvalidChannelArchException, InvalidChannelException, InvalidChannelLabelException, InvalidChannelNameException, InvalidEntitlementException, InvalidErrataException, InvalidKickstartLabelException, InvalidKickstartScriptException, InvalidLocaleCodeException, InvalidPackageArchException, InvalidPackageException, InvalidParentChannelException, InvalidProxyVersionException, InvalidSatCertException, InvalidScriptTypeException, InvalidServerGroupException, InvalidSystemException, InvalidTimeZoneException, InvalidUserNameException, InvalidVirtualizationTypeException, LabelAlreadyExistsException, LookupServerGroupException, MethodInvalidParamException, MethodNotFoundException, MissingCapabilityException, MissingEntitlementException, MissingErrataAttributeException, MultipleBaseChannelException, NoChannelsSelectedException, NoSatChanForVersionException, NoSuchActionException, NoSuchArchException, NoSuchChannelException, NoSuchEntitlementException, NoSuchKickstartTreeException, NoSuchOrgException, NoSuchPackageException, NoSuchRoleException, NoSuchSystemException, NoSuchUserException, NotActivatedSatelliteException, NotEnoughEntitlementsException, PermissionCheckFailureException, ProfileNameTooLongException, ProfileNameTooShortException, ProxyAlreadyRegisteredException, ProxyNotActivatedException, ProxySystemIsSatelliteException, SatelliteIsAProxyException, SatelliteOnlyException, SatelliteOrgException, ServerNotInGroupException, SystemIdInstantiationException, SystemsNotDeletedException, UndefinedCustomFieldsException, UserNeverLoggedInException, UserNotUpdatedException, ValidationException

public class FaultException
extends java.lang.RuntimeException

Generic XML RPC fault

See Also:
Serialized Form

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

errorCode

protected int errorCode

label

protected java.lang.String label
Constructor Detail

FaultException

public FaultException(int error,
                      java.lang.String lbl,
                      java.lang.String message)
Constructor

Parameters:
error - error code
lbl - error label
message - the message

FaultException

public FaultException(int error,
                      java.lang.String lbl,
                      java.lang.String messageId,
                      java.lang.Object[] args)
Constructor

Parameters:
error - error code
lbl - error label
messageId - the string resource message ID
args - arguments to be passed to the localization service

FaultException

public FaultException(int error,
                      java.lang.String lbl,
                      java.lang.String message,
                      java.lang.Throwable cause)
Constructor

Parameters:
error - error code
lbl - error label
message - the message
cause - 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

getErrorCode

public int getErrorCode()
Returns the value of errorCode

Returns:
int errorCode

setErrorCode

public void setErrorCode(int error)
Sets the errorCode to the given value.

Parameters:
error - error code

getLabel

public java.lang.String getLabel()
Returns the value of label

Returns:
String label

setLabel

public void setLabel(java.lang.String lbl)
Sets the label to the given value.

Parameters:
lbl - error label