Package com.tailf.dp

Class DpCallbackExtendedException

All Implemented Interfaces:
Serializable

public class DpCallbackExtendedException extends DpCallbackException
Extended errorcode Exceptions thrown from inside callbacks to identify problems.
See Also:
  • Field Details

    • ERRCODE_IN_USE

      public static final int ERRCODE_IN_USE
      See Also:
    • ERRCODE_RESOURCE_DENIED

      public static final int ERRCODE_RESOURCE_DENIED
      See Also:
    • ERRCODE_INCONSISTENT_VALUE

      public static final int ERRCODE_INCONSISTENT_VALUE
      See Also:
    • ERRCODE_ACCESS_DENIED

      public static final int ERRCODE_ACCESS_DENIED
      See Also:
    • ERRCODE_APPLICATION

      public static final int ERRCODE_APPLICATION
      See Also:
    • ERRCODE_APPLICATION_INTERNAL

      public static final int ERRCODE_APPLICATION_INTERNAL
      See Also:
    • ERRCODE_DATA_MISSING

      public static final int ERRCODE_DATA_MISSING
      See Also:
    • ERRCODE_INTERRUPT

      public static final int ERRCODE_INTERRUPT
      See Also:
    • extendedErrorCode

      public int extendedErrorCode
  • Constructor Details

    • DpCallbackExtendedException

      public DpCallbackExtendedException(int extendedErrorCode, String msg)
      Parameters:
      extendedErrorCode - - One of ERRCODE_IN_USE, ERRCODE_RESOURCE_DENIED, ERRCODE_INCONSISTENT_VALUE, ERRCODE_ACCESS_DENIED, ERRCODE_DATA_MISSING, ERRCODE_INTERRUPT, ERRCODE_APPLICATION or ERRCODE_APPLICATION_INTERNAL
      msg - - informative text describing this exception
    • DpCallbackExtendedException

      public DpCallbackExtendedException(int extendedErrorCode, ConfNamespace appNS, String appTag, String fmt, Object... arguments)
      Parameters:
      extendedErrorCode - - One of ERRCODE_IN_USE, ERRCODE_RESOURCE_DENIED, ERRCODE_INCONSISTENT_VALUE, ERRCODE_ACCESS_DENIED, ERRCODE_DATA_MISSING, ERRCODE_INTERRUPT, ERRCODE_APPLICATION or ERRCODE_APPLICATION_INTERNAL
      appNS - - not implemented, should be null
      appTag - - not implemented, should be null
      fmt - - informative text describing this exception
      arguments - - arguments to be substituted in fmt
    • DpCallbackExtendedException

      public DpCallbackExtendedException(int extendedErrorCode, ConfNamespace appNS, String appTag, ConfException ex)
      Parameters:
      extendedErrorCode - - One of ERRCODE_IN_USE, ERRCODE_RESOURCE_DENIED, ERRCODE_INCONSISTENT_VALUE, ERRCODE_ACCESS_DENIED, ERRCODE_DATA_MISSING, ERRCODE_INTERRUPT, ERRCODE_APPLICATION or ERRCODE_APPLICATION_INTERNAL
      appNS - - not implemented, should be null
      appTag - - not implemented, should be null
      ex - - cause exception
  • Method Details

    • mk

      @Deprecated public static ConfException mk(int extendedErrorCode, ConfNamespace appNS, String appTag, ConfResponse r)
      Deprecated.
      Do not use this method, it expects an internal object as argument.
    • getAppNS

      public ConfNamespace getAppNS()
      Returns:
      ConfNamespace for this extended exception
    • getAppTag

      public String getAppTag()
      Returns:
      appTag for the extended exception
    • getExtendedErrorCodeString

      public String getExtendedErrorCodeString()
      Get string representation of this exception error code.
      Returns:
      String representation of the errorcode for this extended exception