Exception annotation

This commit is contained in:
CocoTheOwner 2021-08-12 23:37:17 +02:00
parent 3d68caed6b
commit 636427ac6b
3 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,8 @@
package com.volmit.iris.util.decree.exceptions;
/**
* Thrown when classes are instantiated that fail because of a missing or faulty decree component
*/
public class DecreeInstanceException extends Exception {
public DecreeInstanceException(String message){
super(message);

View File

@ -18,6 +18,9 @@
package com.volmit.iris.util.decree.exceptions;
/**
* Thrown when a decree parameter is parsed, but parsing fails
*/
public class DecreeParsingException extends Exception{
public DecreeParsingException(String message) {
super(message);

View File

@ -18,6 +18,10 @@
package com.volmit.iris.util.decree.exceptions;
/**
* Thrown when more than one option is available for a singular mapping<br>
* Like having a hashmap where one input maps to two outputs.
*/
public class DecreeWhichException extends Exception{
public DecreeWhichException() {
super("More than one option for the entered input");