Class BotException

  • All Implemented Interfaces:
    java.io.Serializable

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

      Constructors 
      Constructor Description
      BotException​(java.lang.String message)
      Initializes a new instance of the BotException class with a specified error message.
      BotException​(java.lang.String message, java.lang.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 java.lang.Throwable

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

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

      • BotException

        public BotException​(java.lang.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​(java.lang.String message,
                            java.lang.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.