de.vandermeer.asciitable.commons.TableException Maven / Gradle / Ivy
/* Copyright 2014 Sven van der Meer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.vandermeer.asciitable.commons;
/**
* Standard exception for ASCII tables.
*
* @author Sven van der Meer <[email protected]>
* @version v1.0.0 build 160319 (19-Mar-16) for Java 1.7
* @since v0.0.1
*/
public class TableException extends RuntimeException {
/** UUID */
private static final long serialVersionUID = 1L;
/** Standard message */
private static String msg="unmanageable problem in AsciiTable";
/** Returns a new exception */
public TableException(){
super();
}
/**
* Returns a new exception with given cause
* @param cause exception cause
*/
public TableException(Throwable cause){
super(TableException.msg, cause);
}
/**
* Returns a new exception with given cause and message
* @param msg exception message
* @param cause exception cause
*/
public TableException(String msg, String cause){
super(msg, new Error(cause));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy