com.clearlydecoded.messenger.exception.BadMessageFormatException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-messenger Show documentation
Show all versions of rest-messenger Show documentation
Easily create and expose a Spring REST-based API implementation, without losing strong Java
message typing, improving simplicity and robustness of your implementations. It's so easy
to use, you can start implementing your production APIs in under 5 minutes.
package com.clearlydecoded.messenger.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
/**
* {@link BadMessageFormatException} class is an exception that is thrown when the message is not in
* the proper format, thus the system is unable to parse it.
*/
@ResponseStatus(HttpStatus.BAD_REQUEST)
public class BadMessageFormatException extends RuntimeException {
public BadMessageFormatException() {
}
public BadMessageFormatException(String message) {
super(message);
}
public BadMessageFormatException(String message, Throwable cause) {
super(message, cause);
}
public BadMessageFormatException(Throwable cause) {
super(cause);
}
public BadMessageFormatException(String message, Throwable cause, boolean enableSuppression,
boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy