Home | History | Annotate | Download | only in framework
      1 /*
      2  * Licensed to the Apache Software Foundation (ASF) under one or more
      3  * contributor license agreements.  See the NOTICE file distributed with
      4  * this work for additional information regarding copyright ownership.
      5  * The ASF licenses this file to You under the Apache License, Version 2.0
      6  * (the "License"); you may not use this file except in compliance with
      7  * the License.  You may obtain a copy of the License at
      8  *
      9  *     http://www.apache.org/licenses/LICENSE-2.0
     10  *
     11  *  Unless required by applicable law or agreed to in writing, software
     12  *  distributed under the License is distributed on an "AS IS" BASIS,
     13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  *
     15  *  See the License for the specific language governing permissions and
     16  *  limitations under the License.
     17  */
     18 
     19 /**
     20  * @author Vitaly A. Provodin
     21  */
     22 
     23 /**
     24  * Created on 02.02.2005
     25  */
     26 package org.apache.harmony.jpda.tests.framework;
     27 
     28 /**
     29  * Unchecked exception to be thrown in JPDA tests and framework if any error occurs.
     30  */
     31 public class TestErrorException extends RuntimeException {
     32 
     33     /**
     34      * Serialization id.
     35      */
     36     private static final long serialVersionUID = -3946549945049751489L;
     37 
     38     /**
     39      * Hide the default constructor but make it visible from
     40      * derived classes.
     41      */
     42     protected TestErrorException() {
     43     }
     44 
     45     /**
     46      * Creates new exception instance with explaining message.
     47      *
     48      * @param message cause explaining message
     49      */
     50     public TestErrorException(String message) {
     51         super(message);
     52     }
     53 
     54     /**
     55      * Creates new exception instance to enwrap other exception with explaining message.
     56      *
     57      * @param message explaining message
     58      * @param throwable exception to enwrap
     59      */
     60     public TestErrorException(String message, Throwable throwable) {
     61         super(message, throwable);
     62     }
     63 
     64     /**
     65      * Creates new exception instance to enwrap other exception w/o explaining message.
     66      *
     67      * @param throwable exception to enwrap
     68      */
     69     public TestErrorException(Throwable throwable) {
     70         super(throwable);
     71     }
     72 }
     73