Class BotException

  • All Implemented Interfaces:
    Serializable

    public class BotException
    extends RuntimeException
    Represents errors that occur with bot execution.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      BotException​(String message)
      Initializes a new instance of the BotException class with a specified error message.
      BotException​(String message, Exception cause)
      Initializes a new instance of the BotException class with a specified error message and a reference to the inner exception that is the cause of this exception.
    • Method Summary

      • Methods inherited from class Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BotException

        public BotException​(String message)
        Initializes a new instance of the BotException class with a specified error message.
        Parameters:
        message - is the message that describes the error.
      • BotException

        public BotException​(String message,
                            Exception cause)
        Initializes a new instance of the BotException class with a specified error message and a reference to the inner exception that is the cause of this exception.
        Parameters:
        message - is the error message that explains the reason for the exception.
        cause - is the exception that is the cause of the current exception.