X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Fcommon%2Fexceptions%2FInternalCompilerError.java;fp=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Fcommon%2Fexceptions%2FInternalCompilerError.java;h=ae3bdd87ca368ed06cddf8c42f209ea339c63b1f;hp=0000000000000000000000000000000000000000;hb=969bd23cab98a79ca9101af33334000879fb60c5;hpb=866dba5cd5a3929bbeae85991796acb212338a08 diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/common/exceptions/InternalCompilerError.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/common/exceptions/InternalCompilerError.java new file mode 100755 index 000000000..ae3bdd87c --- /dev/null +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/common/exceptions/InternalCompilerError.java @@ -0,0 +1,35 @@ +package org.simantics.scl.compiler.common.exceptions; + +import org.simantics.scl.compiler.errors.Locations; + +public class InternalCompilerError extends RuntimeException { + + private static final long serialVersionUID = -912160242899559098L; + public long location; + + public InternalCompilerError() { + super(); + this.location = Locations.NO_LOCATION; + } + + public InternalCompilerError(long location) { + super(); + this.location = location; + } + + public InternalCompilerError(String message) { + super(message); + this.location = Locations.NO_LOCATION; + } + + public InternalCompilerError(long location, String message) { + super(message); + this.location = location; + } + + public InternalCompilerError(Throwable cause) { + super(cause); + this.location = Locations.NO_LOCATION; + } + +}