Class MemoryException

    • Constructor Detail

      • MemoryException

        public MemoryException​(@Nonnull
                               MemoryException.ErrorCodes error)
        Initializes a new instance of the MemoryException class with a provided error code.
        Parameters:
        error - The error code.
      • MemoryException

        public MemoryException​(@Nonnull
                               MemoryException.ErrorCodes errorCode,
                               @Nullable
                               String message)
        Initializes a new instance of the MemoryException class with a provided error code and message.
        Parameters:
        errorCode - The error code.
        message - A string that describes the error.
      • MemoryException

        public MemoryException​(@Nonnull
                               MemoryException.ErrorCodes errorCode,
                               @Nullable
                               String message,
                               @Nullable
                               Throwable innerException)
        Initializes a new instance of the MemoryException class with a provided error code, message, and inner exception.
        Parameters:
        errorCode - The error code.
        message - A string that describes the error.
        innerException - The exception that is the cause of the current exception.
    • Method Detail

      • getErrorCode

        public MemoryException.ErrorCodes getErrorCode()
        Gets the error code for this exception.
        Returns:
        The error code for this exception.