com.github.fge.jsonschema.core.exceptions
Interface ExceptionProvider

All Known Implementing Classes:
SimpleExceptionProvider

public interface ExceptionProvider

An exception provider for a ProcessingMessage

The main use of this interface is in processing messages themselves: ProcessingReport, for instance, uses a message's ProcessingMessage.asException() method to throw the exception associated with that message. The latter method just returns the result of doException(ProcessingMessage) with this as an argument.

See Also:
SimpleExceptionProvider, ProcessingMessage, ProcessingReport

Method Summary
 ProcessingException doException(ProcessingMessage message)
          Return an exception associated with a message
 

Method Detail

doException

ProcessingException doException(ProcessingMessage message)
Return an exception associated with a message

Parameters:
message - the message
Returns:
the appropriate exception