Class AWException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.almis.awe.exception.AWException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AWENotFoundException, AWEQueryException, AWESessionException

public class AWException extends Exception
Specific AWE Exception class Formatted exception to show a title and a description of the thrown ERROR
Author:
Pablo GARCIA - 24/JUN/2010
See Also:
  • Constructor Details

    • AWException

      public AWException()
      Creates a new instance of AWException without detail message.
    • AWException

      public AWException(String msg)
      Constructs an instance of AWException with the specified detail message.
      Parameters:
      msg - Detail message.
    • AWException

      public AWException(String msg, Throwable cause)
      Constructs an instance of AWException with the specified detail message.
      Parameters:
      msg - Detail message.
      cause - Cause of exception
    • AWException

      public AWException(String title, String message)
      Constructs an instance of AWException with the specified detail message.
      Parameters:
      title - Exception title
      message - Detail message
    • AWException

      public AWException(String tit, String msg, AnswerType typ)
      Constructs an instance of AWException with the specified detail message.
      Parameters:
      tit - Exception title
      msg - Detail message
      typ - Message type (ERROR, warning)
    • AWException

      public AWException(String tit, String msg, Throwable cause)
      Constructs an instance of AWException with the specified detail message and cause exception.
      Parameters:
      tit - Exception title
      msg - Detail message
      cause - Cause exception
  • Method Details

    • getTitle

      public String getTitle()
      Returns the exception title
      Returns:
      Exception title
    • setTitle

      public void setTitle(String title)
      Stores the exception title
      Parameters:
      title - Exception title
    • getType

      public AnswerType getType()
      Returns the exception type
      Returns:
      Exception type
    • setType

      public void setType(AnswerType type)
      Stores the exception type
      Parameters:
      type - Exception type
    • log

      public AWException log()
      Log exception error
      Returns:
      this