-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from PatchworkMC/fix/various
Change name of FatalRemappingException for use in Patcher
- Loading branch information
Showing
3 changed files
with
27 additions
and
13 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
25 changes: 25 additions & 0 deletions
25
...net/patchworkmc/manifest/accesstransformer/v2/exception/FatalMissingMappingException.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,25 @@ | ||
package net.patchworkmc.manifest.accesstransformer.v2.exception; | ||
|
||
public class FatalMissingMappingException extends RuntimeException { | ||
public FatalMissingMappingException(String message, MissingMappingException parent) { | ||
super(message, parent); | ||
} | ||
|
||
public FatalMissingMappingException(MissingMappingException parent) { | ||
super(parent); | ||
} | ||
|
||
@Override | ||
public synchronized MissingMappingException getCause() { | ||
return (MissingMappingException) super.getCause(); | ||
} | ||
|
||
@Override | ||
public synchronized Throwable initCause(Throwable cause) { | ||
if (!(cause instanceof MissingMappingException)) { | ||
throw new IllegalArgumentException("Cause must be an instance of MissingMappingException!"); | ||
} | ||
|
||
return super.initCause(cause); | ||
} | ||
} |
11 changes: 0 additions & 11 deletions
11
...java/net/patchworkmc/manifest/accesstransformer/v2/exception/FatalRemappingException.java
This file was deleted.
Oops, something went wrong.