]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/scl/SCLDatabaseException.java
Initial support for concurrency in databoard, bindings and serializers
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / scl / SCLDatabaseException.java
1 package org.simantics.db.layer0.scl;
2
3 import org.simantics.db.exception.DatabaseException;
4 import org.simantics.scl.compiler.errors.CompilationError;
5
6 public class SCLDatabaseException extends DatabaseException {
7
8         private static final long serialVersionUID = 7276869582177709334L;
9         
10         final public String shortExplanation;
11         final public CompilationError[] compilationErrors;
12         
13         public SCLDatabaseException(String message, String shortExplanation, CompilationError[] compilationErrors) {
14                 super(message);
15                 this.shortExplanation = shortExplanation;
16                 this.compilationErrors = compilationErrors;
17         }
18
19         @Override
20         public String getShortExplanation() {
21                 return shortExplanation;
22         }
23         
24 }