
edu.uiowa.icts.exception.DatatableException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-utils Show documentation
Show all versions of spring-utils Show documentation
ICTS Utilities for Spring Hibernate Projects
The newest version!
package edu.uiowa.icts.exception;
/*
* #%L
* spring-utils
* %%
* Copyright (C) 2010 - 2015 University of Iowa Institute for Clinical and Translational Science (ICTS)
* %%
* 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.
* #L%
*/
/**
* DatatableException class.
*
* @author schappetj
* @version $Id: $
*/
public class DatatableException extends Exception {
private static final long serialVersionUID = 2890579965738044986L;
private String message;
// ----------------------------------------------
// Default constructor - initializes instance variable to unknown
/**
* Constructor for DatatableException.
*/
public DatatableException() {
super(); // call superclass constructor
message = "unknown";
}
// -----------------------------------------------
// Constructor receives some kind of message that is saved in an instance
// variable.
/**
* Constructor for DatatableException.
*
* @param mapping a {@link java.lang.String} object.
*/
public DatatableException(String mapping) {
super(mapping); // call super class constructor
this.message = mapping; // save message
}
// ------------------------------------------------
// public method, callable by exception catcher. It returns the error
// message.
/**
* getError.
*
* @return a {@link java.lang.String} object.
*/
public String getError() {
return message;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy