java.lang.Object
java.lang.Throwable
java.lang.Exception
com.google.zxing.WriterException
- All Implemented Interfaces:
Serializable
A base class which covers the range of exceptions which may occur when encoding a barcode using the Writer framework.
- See Also:
Constructor Summary
ConstructorsConstructorDescriptionCreates an exception with neither a message nor a cause.WriterException(String message) Creates an exception carrying the reason encoding failed.WriterException(Throwable cause) Creates an exception wrapping the error that stopped encoding.Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Details
WriterException
public WriterException()Creates an exception with neither a message nor a cause.WriterException
Creates an exception carrying the reason encoding failed.- Parameters:
message- the reason encoding failed, carried as the exception detail message
WriterException
Creates an exception wrapping the error that stopped encoding.- Parameters:
cause- the underlying error that stopped encoding