Class StaticFileNotFoundException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.bobocode.bring.web.staticcontent.exception.StaticFileNotFoundException
All Implemented Interfaces:
Serializable

public class StaticFileNotFoundException extends RuntimeException
Exception thrown when a static file is not found. This exception is annotated with ResponseStatus to indicate the corresponding HTTP status code (400 Bad Request).
Since:
1.0
Author:
Blyzhnytsia Team
See Also:
  • Constructor Details

    • StaticFileNotFoundException

      public StaticFileNotFoundException(String message)
      Constructs a new StaticFileNotFoundException with the specified detail message.
      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
    • StaticFileNotFoundException

      public StaticFileNotFoundException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)