Class ErrorCategory

java.lang.Object
org.pipservices3.commons.errors.ErrorCategory

public class ErrorCategory extends Object
Defines standard error categories to application exceptions supported by PipServices toolkit.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Errors due to improper user requests, like missing or wrong parameters
    static final String
    Errors raised by conflicts between object versions that were posted by the user and those that are stored on the server.
    static final String
    Errors returned by remote services or network during call attempts
    static final String
    Errors in read/write file operations
    static final String
    Internal errors caused by programming mistakes
    static final String
    Errors related to operations called in wrong component state.
    static final String
    Errors related to mistakes in user-defined configuration
    static final String
    Errors caused by remote calls timeouted and not returning results.
    static final String
    Error caused by attempt to access missing object
    static final String
    Access errors caused by missing user identity (authentication error) or incorrect security permissions (authorization error).
    static final String
    Unknown or unexpected errors
    static final String
    Errors caused by calls to unsupported or not yet implemented functionality
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • Unknown

      public static final String Unknown
      Unknown or unexpected errors
      See Also:
    • Internal

      public static final String Internal
      Internal errors caused by programming mistakes
      See Also:
    • Misconfiguration

      public static final String Misconfiguration
      Errors related to mistakes in user-defined configuration
      See Also:
    • InvalidState

      public static final String InvalidState
      Errors related to operations called in wrong component state. For instance, business calls when component is not ready
      See Also:
    • NoResponse

      public static final String NoResponse
      Errors caused by remote calls timeouted and not returning results. It allows to clearly separate communication related problems from other application errors.
      See Also:
    • FailedInvocation

      public static final String FailedInvocation
      Errors returned by remote services or network during call attempts
      See Also:
    • FileError

      public static final String FileError
      Errors in read/write file operations
      See Also:
    • BadRequest

      public static final String BadRequest
      Errors due to improper user requests, like missing or wrong parameters
      See Also:
    • Unauthorized

      public static final String Unauthorized
      Access errors caused by missing user identity (authentication error) or incorrect security permissions (authorization error).
      See Also:
    • NotFound

      public static final String NotFound
      Error caused by attempt to access missing object
      See Also:
    • Conflict

      public static final String Conflict
      Errors raised by conflicts between object versions that were posted by the user and those that are stored on the server.
      See Also:
    • Unsupported

      public static final String Unsupported
      Errors caused by calls to unsupported or not yet implemented functionality
      See Also:
  • Constructor Details

    • ErrorCategory

      public ErrorCategory()