forked from phax/jcodemodel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added two exceptions, made change of platform available in some cases.
see phax#74
- Loading branch information
Showing
5 changed files
with
192 additions
and
45 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
17 changes: 17 additions & 0 deletions
17
src/main/java/com/helger/jcodemodel/exceptions/JCaseSensitivityChangeException.java
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,17 @@ | ||
package com.helger.jcodemodel.exceptions; | ||
|
||
import com.helger.jcodemodel.JCodeModelException; | ||
|
||
public class JCaseSensitivityChangeException extends JCodeModelException { | ||
|
||
/** | ||
* | ||
*/ | ||
private static final long serialVersionUID = 1L; | ||
|
||
public JCaseSensitivityChangeException() { | ||
super( | ||
"The FileSystem convention cannot be changed for one with a different case sensitivity if a package or a resource directory already exists."); | ||
} | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/com/helger/jcodemodel/exceptions/JInvalidFileNameException.java
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,26 @@ | ||
package com.helger.jcodemodel.exceptions; | ||
|
||
import com.helger.jcodemodel.JCodeModelException; | ||
|
||
/** | ||
* called when trying to create a new file with a name that is not accepted by | ||
* target platform. | ||
* | ||
*/ | ||
public class JInvalidFileNameException extends JCodeModelException { | ||
|
||
/** | ||
* | ||
*/ | ||
private static final long serialVersionUID = 1L; | ||
|
||
public JInvalidFileNameException(String fileName) { | ||
super("invalid file name : " + fileName); | ||
} | ||
|
||
public JInvalidFileNameException(String fullName, String part) { | ||
super("Resource name '" + fullName + "' contains the the invalid part '" + part | ||
+ "' according to the current file system conventions"); | ||
} | ||
|
||
} |
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