org.apache.batik.svggen

Class SVGGraphics2DRuntimeException

public class SVGGraphics2DRuntimeException extends RuntimeException

Thrown when an SVG Generator method receives an illegal argument in parameter.
Constructor Summary
SVGGraphics2DRuntimeException(String s)
Constructs a new SVGGraphics2DRuntimeException with the specified detail message.
SVGGraphics2DRuntimeException(Exception ex)
Constructs a new SVGGraphics2DRuntimeException with the specified detail message.
SVGGraphics2DRuntimeException(String s, Exception ex)
Constructs a new SVGGraphics2DRuntimeException with the specified detail message.
Method Summary
ExceptiongetException()
Returns the original enclosed exception or null if any.
StringgetMessage()
Returns the message of this exception.

Constructor Detail

SVGGraphics2DRuntimeException

public SVGGraphics2DRuntimeException(String s)
Constructs a new SVGGraphics2DRuntimeException with the specified detail message.

Parameters: s the detail message of this exception

SVGGraphics2DRuntimeException

public SVGGraphics2DRuntimeException(Exception ex)
Constructs a new SVGGraphics2DRuntimeException with the specified detail message.

Parameters: ex the enclosed exception

SVGGraphics2DRuntimeException

public SVGGraphics2DRuntimeException(String s, Exception ex)
Constructs a new SVGGraphics2DRuntimeException with the specified detail message.

Parameters: s the detail message of this exception ex the original exception

Method Detail

getException

public Exception getException()
Returns the original enclosed exception or null if any.

getMessage

public 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.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.