Package org.apache.batik.svggen
Class SVGGraphics2DRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.batik.svggen.SVGGraphics2DRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
public class SVGGraphics2DRuntimeException extends java.lang.RuntimeException
Thrown when an SVG Generator method receives an illegal argument in parameter.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SVGGraphics2DRuntimeException(java.lang.Exception ex)
Constructs a newSVGGraphics2DRuntimeException
with the specified detail message.SVGGraphics2DRuntimeException(java.lang.String s)
Constructs a newSVGGraphics2DRuntimeException
with the specified detail message.SVGGraphics2DRuntimeException(java.lang.String s, java.lang.Exception ex)
Constructs a newSVGGraphics2DRuntimeException
with the specified detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Exception
getException()
Returns the original enclosed exception or null if any.java.lang.String
getMessage()
Returns the message of this exception.
-
-
-
Constructor Detail
-
SVGGraphics2DRuntimeException
public SVGGraphics2DRuntimeException(java.lang.String s)
Constructs a newSVGGraphics2DRuntimeException
with the specified detail message.- Parameters:
s
- the detail message of this exception
-
SVGGraphics2DRuntimeException
public SVGGraphics2DRuntimeException(java.lang.Exception ex)
Constructs a newSVGGraphics2DRuntimeException
with the specified detail message.- Parameters:
ex
- the enclosed exception
-
SVGGraphics2DRuntimeException
public SVGGraphics2DRuntimeException(java.lang.String s, java.lang.Exception ex)
Constructs a newSVGGraphics2DRuntimeException
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:
getMessage
in classjava.lang.Throwable
-
getException
public java.lang.Exception getException()
Returns the original enclosed exception or null if any.
-
-