package com.mattrixwv.cipherstream.exceptions; /** * Thrown to indicate that a problem has occurred related to an invalid character. */ public class InvalidCharacterException extends RuntimeException{ /** * Constructs a new {@code InvalidCharacterException} with {@code null} as its detail message. */ public InvalidCharacterException(){ super(); } /** * Constructs a new {@code InvalidCharacterException} with the specified detail message. * * @param message the detail message, which is saved for later retrieval by the {@link #getMessage()} method */ public InvalidCharacterException(String message){ super(message); } /** * Constructs a new {@code InvalidCharacterException} with the specified cause. * * @param error the cause, which is saved for later retrieval by the {@link #getCause()} method */ public InvalidCharacterException(Throwable error){ super(error); } /** * Constructs a new {@code InvalidCharacterException} with the specified detail message and cause. * * @param message the detail message, which is saved for later retrieval by the {@link #getMessage()} method * @param error the cause, which is saved for later retrieval by the {@link #getCause()} method */ public InvalidCharacterException(String message, Throwable error){ super(message, error); } }