mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
rename to WasmException
This commit is contained in:
parent
431d2dc389
commit
9835ea0f12
@ -21,7 +21,7 @@ package de.inetsoftware.jwebassembly;
|
||||
* @author Volker Berlin
|
||||
*
|
||||
*/
|
||||
public class CompileException extends Exception {
|
||||
public class WasmException extends Exception {
|
||||
|
||||
private final int lineNumber;
|
||||
|
||||
@ -33,7 +33,7 @@ public class CompileException extends Exception {
|
||||
* @param lineNumber
|
||||
* the line number in Java Code
|
||||
*/
|
||||
public CompileException( String message, int lineNumber ) {
|
||||
public WasmException( String message, int lineNumber ) {
|
||||
super( message );
|
||||
this.lineNumber = lineNumber;
|
||||
}
|
||||
@ -44,7 +44,7 @@ public class CompileException extends Exception {
|
||||
* @param cause
|
||||
* the cause
|
||||
*/
|
||||
CompileException( Throwable cause ) {
|
||||
WasmException( Throwable cause ) {
|
||||
super( cause );
|
||||
lineNumber = -1;
|
||||
}
|
||||
@ -56,11 +56,11 @@ public class CompileException extends Exception {
|
||||
* the wrapped cause
|
||||
* @return a new instance
|
||||
*/
|
||||
public static CompileException create( Throwable cause ) {
|
||||
if( cause instanceof CompileException ) {
|
||||
return (CompileException)cause;
|
||||
public static WasmException create( Throwable cause ) {
|
||||
if( cause instanceof WasmException ) {
|
||||
return (WasmException)cause;
|
||||
}
|
||||
return new CompileException( cause );
|
||||
return new WasmException( cause );
|
||||
}
|
||||
|
||||
/**
|
Loading…
x
Reference in New Issue
Block a user