View Javadoc
1   /*
2    * Copyright 2010 Ange Optimization ApS
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package eu.simuline.octave.exception;
17  
18  import eu.simuline.octave.OctaveEngine;
19  
20  /**
21   * Exception thrown when evaluation of an octave statement 
22   * in {@link OctaveEngine#eval(String)} fails.
23   */
24  public class OctaveEvalException extends OctaveRecoverableException {
25  
26      /**
27       * Constructor. 
28       *
29       * @see Throwable
30       */
31      public OctaveEvalException() {
32          // Do nothing
33      }
34  
35      /**
36       * Constructor. 
37       *
38       * @param message
39       * @see Throwable
40       */
41      public OctaveEvalException(final String message) {
42          super(message);
43      }
44  
45      /**
46       * Constructor. 
47       *
48       * @param cause
49       * @see Throwable
50       */
51      public OctaveEvalException(final Throwable cause) {
52          super(cause);
53      }
54  
55      /**
56       * Constructor. 
57       *
58       * @param message
59       * @param cause
60       * @see Throwable
61       */
62      public OctaveEvalException(final String message, final Throwable cause) {
63          super(message, cause);
64      }
65  
66  }