- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotJavaException.java
More file actions
Latest commit
29 lines (25 loc) · 778 Bytes
/
Copy pathNotJavaException.java
File metadata and controls
29 lines (25 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
* This class is a user-defineded excption event made for JavaOrNot
* @param errorFilename holds the name of the triggering file
* @author Thomas Jessop
* @version 1.2
* @since 2018-12-10
*/
publicclassNotJavaExceptionextendsException{
//holds the name of the triggering file
privateStringerrorFilename;
/**
* Constuctor for the exception object
* @param triggerFile stroes the name of the triggering file
*/
publicNotJavaException(StringtriggerFile){
this.errorFilename = triggerFile;
}//NotJavaException
/**
* Gets the stored value of the name of the triggering file
* @return errorFilename
*/
publicStringgetErrorFile(){
returnthis.errorFilename;
}//getErrorFile
}// Class