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

com.clearlydecoded.messenger.exception.BadMessageFormatException Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 2.2.2
Show newest version
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