org.apache.batik.transcoder

Class DefaultErrorHandler

public class DefaultErrorHandler extends Object implements ErrorHandler

A default ErrorHandler that throws a TranscoderException when a fatal error occured and display a message when a warning or an error occured.
Method Summary
voiderror(TranscoderException ex)
Invoked when an error occured while transcoding.
voidfatalError(TranscoderException ex)
Invoked when an fatal error occured while transcoding.
voidwarning(TranscoderException ex)
Invoked when a warning occured while transcoding.

Method Detail

error

public void error(TranscoderException ex)
Invoked when an error occured while transcoding.

Parameters: ex the error informations encapsulated in a TranscoderException

Throws: TranscoderException if the method want to forward the exception

fatalError

public void fatalError(TranscoderException ex)
Invoked when an fatal error occured while transcoding.

Parameters: ex the fatal error informations encapsulated in a TranscoderException

Throws: TranscoderException if the method want to forward the exception

warning

public void warning(TranscoderException ex)
Invoked when a warning occured while transcoding.

Parameters: ex the warning informations encapsulated in a TranscoderException

Throws: TranscoderException if the method want to forward the exception

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.