Class TranslationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class TranslationException
    extends java.lang.Exception
    Exception thrown by a translator when it cannot complete a translation.
    Author:
    Christopher Mindus
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TranslationException​(java.lang.String message)
      Creates a translation exception with a message.
      TranslationException​(java.lang.String message, java.lang.Throwable exception)
      Creates a translation exception with a message and an exception cause.
    • 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

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

      • TranslationException

        public TranslationException​(java.lang.String message)
        Creates a translation exception with a message.
        Parameters:
        message - The detail message.
      • TranslationException

        public TranslationException​(java.lang.String message,
                                    java.lang.Throwable exception)
        Creates a translation exception with a message and an exception cause.
        Parameters:
        message - The detail message.
        exception - The exception, i.e. the real cause.