com.io7m.coffeepick.runtime.parser.spi.ParserFailureException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.io7m.coffeepick.runtime.parser.spi Show documentation
Show all versions of com.io7m.coffeepick.runtime.parser.spi Show documentation
Java runtime retrieval (Runtime parser SPI)
The newest version!
/*
* Copyright © 2018 Mark Raynsford http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
package com.io7m.coffeepick.runtime.parser.spi;
import java.util.Objects;
/**
* Parsing failed.
*/
public final class ParserFailureException extends Exception
{
/**
* Construct an exception.
*
* @param message The message
*/
public ParserFailureException(
final String message)
{
super(Objects.requireNonNull(message, "message"));
}
/**
* Construct an exception.
*
* @param message The message
* @param cause The cause
*/
public ParserFailureException(
final String message,
final Throwable cause)
{
super(
Objects.requireNonNull(message, "message"),
Objects.requireNonNull(cause, "cause"));
}
/**
* Construct an exception.
*
* @param cause The cause
*/
public ParserFailureException(
final Throwable cause)
{
super(Objects.requireNonNull(cause, "cause"));
}
}