1 /* 2 * Copyright 2012 Olivier Godineau 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 5 * use this file except in compliance with the License. You may obtain a copy of 6 * the License at http://www.apache.org/licenses/LICENSE-2.0 7 * 8 * Unless required by applicable law or agreed to in writing, software 9 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 10 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 11 * License for the specific language governing permissions and limitations under 12 * the License. 13 */ 14 package olg.csv.bean.getter; 15 16 /** 17 * Exception thrown when an error occurs during String extraction operation from 18 * a row. 19 * 20 * @see AbstractGetter 21 * 22 */ 23 public class GetterException extends RuntimeException { 24 25 /** 26 * 27 */ 28 private static final long serialVersionUID = 1L; 29 /** 30 * Constructs a new exception with <code>null</code> as its detail message. 31 */ 32 public GetterException() { 33 super(); 34 35 } 36 /** 37 * Constructs a new exception with the specified detail message and cause. 38 * 39 * @param message 40 * the detail message 41 * @param cause 42 * the cause (which is saved for later retrieval by the 43 * {@link #getCause()} method). 44 */ 45 public GetterException(String message, Throwable cause) { 46 super(message, cause); 47 48 } 49 /** 50 * Constructs a new exception with the specified detail message. 51 * 52 * @param message 53 * the detail message. 54 */ 55 public GetterException(String message) { 56 super(message); 57 58 } 59 /** 60 * Constructs a new exception with the specified cause. 61 * 62 * @param cause 63 * the cause (which is saved for later retrieval by the 64 * {@link #getCause()} method). 65 */ 66 public GetterException(Throwable cause) { 67 super(cause); 68 69 } 70 71 }