//Matrix/src/main/java/com/mattrixwv/exceptions/NullMatrixException.java //Mattrixwv // Created: 06-30-22 //Modified: 08-08-24 package com.mattrixwv.matrix.exceptions; /** * Exception thrown to indicate that a null matrix has been illegally passed to a method */ public class NullMatrixException extends RuntimeException{ /** * Serialization identifier for this class. */ public static final long serialVersionUID = 1; /** * Constructs a new {@code NullMatrixException} with {@code null} as its detail message. * The cause is not initialized and may subsequently be initialized by a call to {@link #initCause}. */ public NullMatrixException(){ super(); } /** * Constructs a new {@code NullMatrixException} 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 NullMatrixException(String message){ super(message); } /** * Constructs a new {@code NullMatrixException} 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 NullMatrixException(Throwable throwable){ super(throwable); } /** * Constructs a new {@code NullMatrixException} 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 NullMatrixException(String message, Throwable throwable){ super(message, throwable); } }