Skip to content

Commit

Permalink
Change APIException interface into class
Browse files Browse the repository at this point in the history
  • Loading branch information
Daan Kooij committed Jul 16, 2018
1 parent 564dd1c commit db5e9e6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
14 changes: 11 additions & 3 deletions src/main/java/nl/utwente/ing/exception/APIException.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
package nl.utwente.ing.exception;

/**
* The APIException interface.
* Used as the parent of all APIExceptions.
* The APIException class.
* Extends Exception.
* Used as the superclass of all APIExceptions.
*
* @author Daan Kooij
*/
public interface APIException {
public class APIException extends Exception {

/**
* The empty constructor of APIException.
*/
public APIException() {

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

/**
* The InvalidSessionIDException class.
* Extends Exception and implements APIException.
* Extends APIException.
* InvalidSessionIDException is thrown whenever a sessionID is missing or invalid.
*
* @author Daan Kooij
*/
public class InvalidSessionIDException extends Exception implements APIException {
public class InvalidSessionIDException extends APIException {

/**
* The empty constructor of InvalidSessionIDException.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

/**
* The ResourceNotFoundException class.
* Extends Exception and implements APIException.
* Extends APIException.
* ResourceNotFoundException is thrown whenever a resource is not found.
*
* @author Daan Kooij
*/
public class ResourceNotFoundException extends Exception implements APIException {
public class ResourceNotFoundException extends APIException {

/**
* The empty constructor of ResourceNotFoundException.
Expand Down

0 comments on commit db5e9e6

Please sign in to comment.