package com.mattrixwv.matrix.exceptions; /** * Exception thrown to indicate that a scalar value passed to a matrix is invalid */ public class InvalidScalarException extends RuntimeException{ /** * Constructs a new {@code InvalidScalarException} with {@code null} as its detail message. * The cause is not initialized and may subsequently be initialized by a call to {@link #initCause}. */ public InvalidScalarException(){ super(); } /** * Constructs a new {@code InvalidScalarException} with the specified detail message. * The cause is not initialized and may subsequently be initialized by a call to {@link #initCause}. * * @param message the detail message, which is saved for later retrieval by the {@link #getMessage()} method. */ public InvalidScalarException(String message){ super(message); } /** * Constructs a new {@code InvalidScalarException} with the specified cause and a detail message of * {@code (cause==null ? null : cause.toString())} (which typically contains the class and detail message * of {@code cause}). This constructor is useful for exceptions that are wrappers for other exceptions. * * @param throwable the cause (which is saved for later retrieval by the {@link #getCause()} method). * (A {@code null} value is permitted, and indicates that the cause is nonexistent or unknown.) */ public InvalidScalarException(Throwable throwable){ super(throwable); } /** * Constructs a new {@code InvalidScalarException} with the specified detail message and cause. * * @param message the detail message, which is saved for later retrieval by the {@link #getMessage()} method. * @param throwable the cause (which is saved for later retrieval by the {@link #getCause()} method). * (A {@code null} value is permitted, and indicates that the cause is nonexistent or unknown.) */ public InvalidScalarException(String message, Throwable throwable){ super(message, throwable); } }