Class TR069Exception

  • All Implemented Interfaces:
    java.io.Serializable

    public class TR069Exception
    extends java.lang.RuntimeException
    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:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int INTERNAL_ERROR
      9002 Internal error
      static int INVALID_ARGUMENTS
      9003 Invalid Arguments
      static int INVALID_PARAMETER_NAME
      9005 Invalid parameter name (associated with Set/GetParameterValues, GetParameterNames, Set/GetParameterAttributes, AddObject, and DeleteObject)
      static int INVALID_PARAMETER_TYPE
      9006 Invalid parameter type (associated with SetParameterValues)
      static int INVALID_PARAMETER_VALUE
      9007 Invalid parameter value (associated with SetParameterValues)
      static int METHOD_NOT_SUPPORTED
      9000 Method not supported
      static int NON_WRITABLE_PARAMETER
      9008 Attempt to set a non-writable parameter (associated with SetParameterValues)
      static int NOTIFICATION_REJECTED
      9009 Notification request rejected (associated with SetParameterAttributes method).
      static int REQUEST_DENIED
      9001 Request denied (no reason specified
      static int RESOURCES_EXCEEDED
      9004 Resources exceeded (when used in association with SetParameterValues, this MUST NOT be used to indicate parameters in error)
    • Constructor Summary

      Constructors 
      Constructor Description
      TR069Exception​(java.lang.String message)
      A default constructor when only a message is known.
      TR069Exception​(java.lang.String message, int faultCode)
      A Constructor with a message and a fault code.
      TR069Exception​(java.lang.String message, int faultCode, DmtException e)
      A Constructor with a message and a fault code.
      TR069Exception​(DmtException e)
      Create a TR069Exception from a Dmt Exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DmtException getDmtException()  
      int getFaultCode()
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • METHOD_NOT_SUPPORTED

        public static final int METHOD_NOT_SUPPORTED
        9000 Method not supported
        See Also:
        Constant Field Values
      • REQUEST_DENIED

        public static final int REQUEST_DENIED
        9001 Request denied (no reason specified
        See Also:
        Constant Field Values
      • INTERNAL_ERROR

        public static final int INTERNAL_ERROR
        9002 Internal error
        See Also:
        Constant Field Values
      • INVALID_ARGUMENTS

        public static final int INVALID_ARGUMENTS
        9003 Invalid Arguments
        See Also:
        Constant Field Values
      • RESOURCES_EXCEEDED

        public static final int RESOURCES_EXCEEDED
        9004 Resources exceeded (when used in association with SetParameterValues, this MUST NOT be used to indicate parameters in error)
        See Also:
        Constant Field Values
      • INVALID_PARAMETER_NAME

        public static final int INVALID_PARAMETER_NAME
        9005 Invalid parameter name (associated with Set/GetParameterValues, GetParameterNames, Set/GetParameterAttributes, AddObject, and DeleteObject)
        See Also:
        Constant Field Values
      • INVALID_PARAMETER_TYPE

        public static final int INVALID_PARAMETER_TYPE
        9006 Invalid parameter type (associated with SetParameterValues)
        See Also:
        Constant Field Values
      • INVALID_PARAMETER_VALUE

        public static final int INVALID_PARAMETER_VALUE
        9007 Invalid parameter value (associated with SetParameterValues)
        See Also:
        Constant Field Values
      • NON_WRITABLE_PARAMETER

        public static final int NON_WRITABLE_PARAMETER
        9008 Attempt to set a non-writable parameter (associated with SetParameterValues)
        See Also:
        Constant Field Values
      • NOTIFICATION_REJECTED

        public static final int NOTIFICATION_REJECTED
        9009 Notification request rejected (associated with SetParameterAttributes method).
        See Also:
        Constant Field Values
    • Constructor Detail

      • TR069Exception

        public TR069Exception​(java.lang.String message)
        A default constructor when only a message is known. This will generate a INTERNAL_ERROR fault.
        Parameters:
        message - The message
      • TR069Exception

        public TR069Exception​(java.lang.String message,
                              int faultCode,
                              DmtException e)
        A Constructor with a message and a fault code.
        Parameters:
        message - The message
        faultCode - The TR-069 defined fault code
        e -
      • TR069Exception

        public TR069Exception​(java.lang.String message,
                              int faultCode)
        A Constructor with a message and a fault code.
        Parameters:
        message - The message
        faultCode - The TR-069 defined fault code
      • TR069Exception

        public TR069Exception​(DmtException e)
        Create a TR069Exception from a Dmt Exception.
        Parameters:
        e - The Dmt Exception
    • Method Detail

      • getFaultCode

        public int getFaultCode()
        Answer the associated TR-069 fault code.
        Returns:
        Answer the associated TR-069 fault code.
      • getDmtException

        public DmtException getDmtException()
        Returns:
        the corresponding Dmt Exception