Package org.osgi.service.tr069todmt
Class TR069Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.osgi.service.tr069todmt.TR069Exception
- All Implemented Interfaces:
Serializable
This exception is defined in terms of applicable TR-069 fault codes. The
TR-069 specification defines the fault codes that can occur in different
situations.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
9002 Internal errorstatic final int
9003 Invalid Argumentsstatic final int
9005 Invalid parameter name (associated with Set/GetParameterValues, GetParameterNames, Set/GetParameterAttributes, AddObject, and DeleteObject)static final int
9006 Invalid parameter type (associated with SetParameterValues)static final int
9007 Invalid parameter value (associated with SetParameterValues)static final int
9000 Method not supportedstatic final int
9008 Attempt to set a non-writable parameter (associated with SetParameterValues)static final int
9009 Notification request rejected (associated with SetParameterAttributes method).static final int
9001 Request denied (no reason specifiedstatic final int
9004 Resources exceeded (when used in association with SetParameterValues, this MUST NOT be used to indicate parameters in error) -
Constructor Summary
ConstructorDescriptionTR069Exception
(String message) A default constructor when only a message is known.TR069Exception
(String message, int faultCode) A Constructor with a message and a fault code.TR069Exception
(String message, int faultCode, DmtException e) A Constructor with a message and a fault code.Create a TR069Exception from a Dmt Exception. -
Method Summary
Modifier and TypeMethodDescriptionint
Answer the associated TR-069 fault code.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
METHOD_NOT_SUPPORTED
public static final int METHOD_NOT_SUPPORTED9000 Method not supported- See Also:
-
REQUEST_DENIED
public static final int REQUEST_DENIED9001 Request denied (no reason specified- See Also:
-
INTERNAL_ERROR
public static final int INTERNAL_ERROR9002 Internal error- See Also:
-
INVALID_ARGUMENTS
public static final int INVALID_ARGUMENTS9003 Invalid Arguments- See Also:
-
RESOURCES_EXCEEDED
public static final int RESOURCES_EXCEEDED9004 Resources exceeded (when used in association with SetParameterValues, this MUST NOT be used to indicate parameters in error)- See Also:
-
INVALID_PARAMETER_NAME
public static final int INVALID_PARAMETER_NAME9005 Invalid parameter name (associated with Set/GetParameterValues, GetParameterNames, Set/GetParameterAttributes, AddObject, and DeleteObject)- See Also:
-
INVALID_PARAMETER_TYPE
public static final int INVALID_PARAMETER_TYPE9006 Invalid parameter type (associated with SetParameterValues)- See Also:
-
INVALID_PARAMETER_VALUE
public static final int INVALID_PARAMETER_VALUE9007 Invalid parameter value (associated with SetParameterValues)- See Also:
-
NON_WRITABLE_PARAMETER
public static final int NON_WRITABLE_PARAMETER9008 Attempt to set a non-writable parameter (associated with SetParameterValues)- See Also:
-
NOTIFICATION_REJECTED
public static final int NOTIFICATION_REJECTED9009 Notification request rejected (associated with SetParameterAttributes method).- See Also:
-
-
Constructor Details
-
TR069Exception
A default constructor when only a message is known. This will generate aINTERNAL_ERROR
fault.- Parameters:
message
- The message
-
TR069Exception
A Constructor with a message and a fault code.- Parameters:
message
- The messagefaultCode
- The TR-069 defined fault codee
-
-
TR069Exception
A Constructor with a message and a fault code.- Parameters:
message
- The messagefaultCode
- The TR-069 defined fault code
-
TR069Exception
Create a TR069Exception from a Dmt Exception.- Parameters:
e
- The Dmt Exception
-
-
Method Details
-
getFaultCode
public int getFaultCode()Answer the associated TR-069 fault code.- Returns:
- Answer the associated TR-069 fault code.
-
getDmtException
- Returns:
- the corresponding Dmt Exception
-