Class UserCausedDocumentServiceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
se.conciliate.extensions.documentservice.exception.DocumentServiceException
se.conciliate.extensions.documentservice.exception.UserCausedDocumentServiceException
All Implemented Interfaces:
Serializable

@Deprecated public class UserCausedDocumentServiceException extends DocumentServiceException
Deprecated.
Used to signal an error that the user is likely to be able to correct.
Author:
Per-Erik
See Also:
  • Constructor Details

    • UserCausedDocumentServiceException

      public UserCausedDocumentServiceException(String title, String fault, String meassure)
      Deprecated.
      Creates a new UserCausedDocumentServiceException
      Parameters:
      title - The title of the exception, as displayed to the user.
      fault - A description of the exception, as displayed to the user.
      meassure - A counter meassure to correct this fault, if available, as displayed to the user.
    • UserCausedDocumentServiceException

      public UserCausedDocumentServiceException(String title, String fault, String meassure, Throwable cause)
      Deprecated.
      Creates a new UserCausedDocumentServiceException.
      Parameters:
      title - The title of the exception, as displayed to the user.
      fault - A description of the exception, as displayed to the user.
      meassure - A counter meassure to correct this fault, if available, as displayed to the user.
      cause - the throwable that caused this exception.
  • Method Details

    • getFault

      public String getFault()
      Deprecated.
      Returns a user friendly description of the error, such as "The server connections are not correctly set up".
      Returns:
      a user friendly description of the error.
    • getMeassure

      public String getMeassure()
      Deprecated.
      Returns a user friendly description of what to do to correct the error, such as "Please provide a server adress in the adress settings and restart the plugin.".
      Returns:
      a user friendly description of what to do to correct the error
    • getMessage

      public String getMessage()
      Deprecated.
      Overrides the default message and returns getFault().
      Overrides:
      getMessage in class Throwable
      See Also:
    • getTitle

      public String getTitle()
      Deprecated.
      Returns a short, consice description of the error, such as "Settings not found".
      Returns:
      a short, consice description of the error