/** * Build an exception out of this message * * <p>This uses the {@link ExceptionProvider} built into the message and * invokes {@link ExceptionProvider#doException(ProcessingMessage)} with * {@code this} as an argument.</p> * * @return an exception * @see #setExceptionProvider(ExceptionProvider) */ public ProcessingException asException() { return exceptionProvider.doException(this); }
/** * Build an exception out of this message * * <p>This uses the {@link ExceptionProvider} built into the message and * invokes {@link ExceptionProvider#doException(ProcessingMessage)} with * {@code this} as an argument.</p> * * @return an exception * @see #setExceptionProvider(ExceptionProvider) */ public ProcessingException asException() { return exceptionProvider.doException(this); }
/** * Build an exception out of this message * * <p>This uses the {@link ExceptionProvider} built into the message and * invokes {@link ExceptionProvider#doException(ProcessingMessage)} with * {@code this} as an argument.</p> * * @return an exception * @see #setExceptionProvider(ExceptionProvider) */ public ProcessingException asException() { return exceptionProvider.doException(this); }