summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/scripting/ScriptErrorException.java
blob: 9b1084fffa0a7269003133f64393a4f671931930 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.c2kernel.scripting;

public class ScriptErrorException extends java.lang.Exception {

     /**
     * Creates new <code>sciptingEngineException</code> without detail message.
     */
	ErrorInfo errors;
    public ScriptErrorException() {
    }

    /**
     * Constructs an <code>sciptingEngineException</code> with the specified detail message.
     * @param msg the detail message.
     */
    public ScriptErrorException(String msg) {
        super(msg);
    }
    
    public ScriptErrorException(ErrorInfo errors) {
        super(errors.toString()); 
        this.errors = errors;
    }

	public ErrorInfo getErrors() {
		return errors;
	}
}