Package org.apache.batik.transcoder
Class TranscoderException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.batik.transcoder.TranscoderException
-
- All Implemented Interfaces:
java.io.Serializable
public class TranscoderException extends java.lang.ExceptionThrown when a transcoder is not able to transcode its input.- Version:
- $Id: TranscoderException.java 1805619 2017-08-21 10:57:35Z ssteiner $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ExceptionexThe enclosed exception.
-
Constructor Summary
Constructors Constructor Description TranscoderException(java.lang.Exception ex)Constructs a new transcoder exception with the specified detail message.TranscoderException(java.lang.String s)Constructs a new transcoder exception with the specified detail message.TranscoderException(java.lang.String s, java.lang.Exception ex)Constructs a new transcoder exception with the specified detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ExceptiongetException()Returns the original enclosed exception or null if any.java.lang.StringgetMessage()Returns the message of this exception.
-
-
-
Constructor Detail
-
TranscoderException
public TranscoderException(java.lang.String s)
Constructs a new transcoder exception with the specified detail message.- Parameters:
s- the detail message of this exception
-
TranscoderException
public TranscoderException(java.lang.Exception ex)
Constructs a new transcoder exception with the specified detail message.- Parameters:
ex- the enclosed exception
-
TranscoderException
public TranscoderException(java.lang.String s, java.lang.Exception ex)Constructs a new transcoder exception with the specified detail message.- Parameters:
s- the detail message of this exceptionex- the original exception
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
Returns the message of this exception. If an error message has been specified, returns that one. Otherwise, return the error message of enclosed exception or null if any.- Overrides:
getMessagein classjava.lang.Throwable
-
getException
public java.lang.Exception getException()
Returns the original enclosed exception or null if any.
-
-