mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +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
|
* @author Volker Berlin
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class CompileException extends Exception {
|
public class WasmException extends Exception {
|
||||||
|
|
||||||
private final int lineNumber;
|
private final int lineNumber;
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ public class CompileException extends Exception {
|
|||||||
* @param lineNumber
|
* @param lineNumber
|
||||||
* the line number in Java Code
|
* the line number in Java Code
|
||||||
*/
|
*/
|
||||||
public CompileException( String message, int lineNumber ) {
|
public WasmException( String message, int lineNumber ) {
|
||||||
super( message );
|
super( message );
|
||||||
this.lineNumber = lineNumber;
|
this.lineNumber = lineNumber;
|
||||||
}
|
}
|
||||||
@ -44,7 +44,7 @@ public class CompileException extends Exception {
|
|||||||
* @param cause
|
* @param cause
|
||||||
* the cause
|
* the cause
|
||||||
*/
|
*/
|
||||||
CompileException( Throwable cause ) {
|
WasmException( Throwable cause ) {
|
||||||
super( cause );
|
super( cause );
|
||||||
lineNumber = -1;
|
lineNumber = -1;
|
||||||
}
|
}
|
||||||
@ -56,11 +56,11 @@ public class CompileException extends Exception {
|
|||||||
* the wrapped cause
|
* the wrapped cause
|
||||||
* @return a new instance
|
* @return a new instance
|
||||||
*/
|
*/
|
||||||
public static CompileException create( Throwable cause ) {
|
public static WasmException create( Throwable cause ) {
|
||||||
if( cause instanceof CompileException ) {
|
if( cause instanceof WasmException ) {
|
||||||
return (CompileException)cause;
|
return (WasmException)cause;
|
||||||
}
|
}
|
||||||
return new CompileException( cause );
|
return new WasmException( cause );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
Loading…
x
Reference in New Issue
Block a user