Class AWException

    • Constructor Detail

      • 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 Detail

      • 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