org.apache.batik.svggen
Class SVGGraphics2DIOException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.apache.batik.svggen.SVGGraphics2DIOException
All Implemented Interfaces:
Serializable

public class SVGGraphics2DIOException
extends IOException

Thrown when an SVG Generator method receives an illegal argument in parameter.

See Also:
Serialized Form

Constructor Summary
SVGGraphics2DIOException(IOException ex)
          Constructs a new SVGGraphics2DIOException with the specified detail message.
SVGGraphics2DIOException(String s)
          Constructs a new SVGGraphics2DIOException with the specified detail message.
SVGGraphics2DIOException(String s, IOException ex)
          Constructs a new SVGGraphics2DIOException with the specified detail message.
 
Method Summary
 IOException getException()
          Returns the original enclosed exception or null if any.
 String getMessage()
          Returns the message of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, 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

SVGGraphics2DIOException

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

Parameters:
s - the detail message of this exception

SVGGraphics2DIOException

public SVGGraphics2DIOException(IOException ex)
Constructs a new SVGGraphics2DIOException with the specified detail message.

Parameters:
ex - the enclosed exception

SVGGraphics2DIOException

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

Parameters:
s - the detail message of this exception
ex - the original exception
Method Detail

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.

Overrides:
getMessage in class Throwable

getException

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



Copyright © 2017 Apache Software Foundation. All Rights Reserved.