Class ServerAuthorViewServiceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase
org.odpi.openmetadata.viewservices.serverauthor.api.ffdc.ServerAuthorViewServiceException
All Implemented Interfaces:
Serializable

public class ServerAuthorViewServiceException extends OCFCheckedExceptionBase
This is a simple exception class that can convey the few types of exception that it is sensible to propagate back to the user interface. The ServerAuthor handler will have detected or caught each error condition, audit logged it and will then create a ServerAuthorViewServiceException to capture the essential details that can be used in the UI.
See Also:
  • Constructor Details

    • ServerAuthorViewServiceException

      public ServerAuthorViewServiceException(ExceptionMessageDefinition messageDefinition, String className, String actionDescription)
      Constructor
      Parameters:
      messageDefinition - message definition
      className - class name for diagnostics purposes
      actionDescription - current action
  • Method Details

    • toString

      public String toString()
      JSON-style toString
      Overrides:
      toString in class OCFCheckedExceptionBase
      Returns:
      string of property names and values for this enum
    • equals

      public boolean equals(Object objectToCompare)
      Return comparison result based on the content of the properties.
      Overrides:
      equals in class OCFCheckedExceptionBase
      Parameters:
      objectToCompare - test object
      Returns:
      result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class OCFCheckedExceptionBase
      Returns:
      int hash code