Class AlgorithmException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AlgorithmException
    extends java.lang.Exception
    AlgorithmExceptions indicate an problem when running an algorithm. AlgorithmExceptions will often be used as a wrapper for other Exceptions
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String stacktrace  
    • Constructor Summary

      Constructors 
      Constructor Description
      AlgorithmException​(java.lang.String message)
      Constructs a new algorithm exception with the specified detail message, no stack trace.
      AlgorithmException​(java.lang.String message, AlgorithmException cause, java.lang.String stacktrace)
      Constructs a new algorithm exception from an exception message and stacktrace
      AlgorithmException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a new algorithm exception with the specified detail message and cause.
      AlgorithmException​(java.lang.Throwable throwable)
      Constructs a new algorithm exception from an existing exception
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

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

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

      • stacktrace

        public final java.lang.String stacktrace
    • Constructor Detail

      • AlgorithmException

        public AlgorithmException​(java.lang.String message)
        Constructs a new algorithm exception with the specified detail message, no stack trace.
        Parameters:
        message - the detail message
      • AlgorithmException

        public AlgorithmException​(java.lang.String message,
                                  java.lang.Throwable cause)
        Constructs a new algorithm exception with the specified detail message and cause.
        Parameters:
        message - the detail message
        cause - the cause of the AlgorithmException
      • AlgorithmException

        public AlgorithmException​(java.lang.Throwable throwable)
        Constructs a new algorithm exception from an existing exception
        Parameters:
        throwable - the original Exception to wrap in an AlgorithmException
      • AlgorithmException

        public AlgorithmException​(java.lang.String message,
                                  AlgorithmException cause,
                                  java.lang.String stacktrace)
        Constructs a new algorithm exception from an exception message and stacktrace
        Parameters:
        message - the detail message
        cause - the cause of the AlgorithmException
        stacktrace - the stack trace that caused this exception
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable