All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bluecatcode.common.contract.errors.ContractViolation Maven / Gradle / Ivy

The newest version!
package com.bluecatcode.common.contract.errors;

/**
 * Exception thrown to indicate that a contract violation have been detected.
 * Contract violations are considered to be programming errors, and hence
 * should not be caught and recovered from in normal application flow.
 */
public class ContractViolation extends Error {

    private static final long serialVersionUID = 0L;

    public ContractViolation() {
        /* Empty */
    }

    public ContractViolation(String message) {
        super(message);
    }

    public ContractViolation(String message, Throwable cause) {
        super(message, cause);
    }

    public ContractViolation(Throwable cause) {
        super(cause);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy