Package org.apache.batik.transcoder
Interface ErrorHandler
- All Known Implementing Classes:
DefaultErrorHandler
public interface ErrorHandler
This interface provides a way to catch errors and warnings from a
Transcoder.
If an application needs to implement customized error handling, it
must implement this interface and then register an instance with
the Transcoder using the transcoder's setErrorHandler method. The
transcoder will then report all errors and warnings through this
interface.
A transcoder shall use this interface instead of throwing an
exception: it is up to the application whether to throw an
exception for different types of errors and warnings. Note,
however, that there is no requirement that the transcoder continue
to provide useful information after a call to fatalError (in other
words, a transcoder class could catch an exception and report a
fatalError).
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked when an error occured while transcoding.void
Invoked when an fatal error occured while transcoding.void
Invoked when a warning occured while transcoding.
-
Method Details
-
error
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
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
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
-