TiagoMSSantos/MobileRT

View on GitHub
app/src/main/java/puscas/mobilertapp/exceptions/FailureException.java

Summary

Maintainability
A
0 mins
Test Coverage
package puscas.mobilertapp.exceptions;

import androidx.annotation.NonNull;

import java.io.Serial;

/**
 * An {@link Exception} which represents the system with a failure.
 */
public final class FailureException extends RuntimeException {

    /**
     * The Serial UUID.
     */
    @Serial
    private static final long serialVersionUID = -7199144687688639370L;

    /**
     * The constructor for rethrows.
     *
     * @param cause The {@link Throwable} to wrap with this exception.
     */
    public FailureException(@NonNull final Throwable cause) {
        super(cause);
    }

    /**
     * The constructor with message.
     *
     * @param message The cause of the exception.
     */
    public FailureException(@NonNull final String message) {
        super(message);
    }

    /**
     * The constructor for rethrows with message.
     *
     * @param message The cause of the exception.
     * @param cause   The {@link Throwable} to wrap with this exception.
     */
    public FailureException(@NonNull final String message, @NonNull final Throwable cause) {
        super(message, cause);
    }

}