-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
50 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Gal 255 0 0 | ||
Ans 255 128 0 | ||
Neo 255 255 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Gal 0 255 100 100 | ||
Ans 0 128 255 100 | ||
Neo 0 0 255 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package exceptions; | ||
|
||
@SuppressWarnings("serial") | ||
public class MissingAttributeException extends Exception { | ||
|
||
public static final String LINE = "line"; | ||
public static final String POLYGON = "polygon"; | ||
|
||
private String attributeName; | ||
private String name; | ||
|
||
public MissingAttributeException(String attributeName, String name) { | ||
|
||
this.attributeName = attributeName; | ||
this.name = name; | ||
|
||
}//END: Constructor | ||
|
||
@Override | ||
public String getMessage() { | ||
String message = "Attribute " + attributeName + " missing from " + name +" attributes"; | ||
return message; | ||
} | ||
|
||
}//END: class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters