1 /* 2 * This file is a part of CAST project. 3 * (c) Copyright 2007, AGH University of Science & Technology 4 * https://caribou.iisg.agh.edu.pl/trac/cast 5 * 6 * Licensed under the Eclipse Public License, Version 1.0 (the "License"). 7 * You may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * http://www.eclipse.org/legal/epl-v10.html 10 */ 11 /* 12 * File: ErrorAlreadyExistsException.java 13 * Created: 2009-10-07 14 * Author: kpietak 15 * $Id: ErrorAlreadyExistsException.java 2308 2009-01-12 22:33:45Z kpietak $ 16 */ 17 18 package pl.edu.agh.cast.rawdata.stat; 19 20 /** 21 * Exception which is thrown when already existing error is trying to be added. 22 * 23 * @author AGH CAST Team 24 * 25 */ 26 public class ErrorAlreadyExistsException extends Exception { 27 28 private static final long serialVersionUID = 1L; 29 30 /** 31 * Default constructor. 32 * 33 * @param err 34 * error type which is trying to be added. 35 */ 36 public ErrorAlreadyExistsException(ErrorType err) { 37 super("Error already exists in registry. Error code: " + err.getCode() //$NON-NLS-1$ 38 + "; error message: " + err.getMessage()); //$NON-NLS-1$ 39 40 } 41 }