Skip to content

Commit

Permalink
Add DukeException.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwan Chen Sheng committed Aug 29, 2019
1 parent 94097c4 commit 289e031
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/DukeException.java
@@ -0,0 +1,14 @@
public class DukeException extends Exception {
protected String errormessage;

public DukeException(String errormessage) {
this.errormessage = errormessage;
}

@Override
public String toString() {
return "____________________________________________________________\n"
+ this.errormessage
+ "\n____________________________________________________________";
}
}

0 comments on commit 289e031

Please sign in to comment.