Skip to content

Commit

Permalink
Add @ResponseStatus on file storage exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Jul 16, 2024
1 parent 28132f4 commit a679464
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package org.radarbase.appserver.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
public class FileStorageException extends RuntimeException {
private static final long serialVersionUID = -793674245766939L;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package org.radarbase.appserver.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

@ResponseStatus(HttpStatus.EXPECTATION_FAILED)
public class InvalidFileDetailsException extends IllegalArgumentException {
private static final long serialVersionUID = -793674245766939L;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package org.radarbase.appserver.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

@ResponseStatus(HttpStatus.EXPECTATION_FAILED)
public class InvalidPathDetailsException extends IllegalArgumentException {
private static final long serialVersionUID = -793674245766939L;

Expand Down

0 comments on commit a679464

Please sign in to comment.