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

org.sklsft.commons.api.exception.ApplicationException Maven / Gradle / Ivy

There is a newer version: 5.0.0-M1
Show newest version
package org.sklsft.commons.api.exception;

/**
 * This RuntimeException is used to be handled by several aspects
* It overrides the message to enable the serialization/deserialization using setters as required in json serialization for instance * * @author Nicolas Thibault * */ public abstract class ApplicationException extends RuntimeException { private static final long serialVersionUID = 1L; public static final String ERROR_UNKNOWN = "error.unknown"; private String message; public ApplicationException(){ super(); } public ApplicationException(String message) { super(message); this.message = message; } public ApplicationException(String message, Throwable cause) { super(message, cause); this.message = message; } @Override public String getMessage() { return this.message; } public void setMessage(String message) { this.message = message; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy