19d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair/* 29d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * Copyright 2007 the original author or authors. 39d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * 49d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * Licensed under the Apache License, Version 2.0 (the "License"); 59d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * you may not use this file except in compliance with the License. 69d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * You may obtain a copy of the License at 79d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * 89d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * http://www.apache.org/licenses/LICENSE-2.0 99d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * 109d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * Unless required by applicable law or agreed to in writing, software 119d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * distributed under the License is distributed on an "AS IS" BASIS, 129d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 139d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * See the License for the specific language governing permissions and 149d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * limitations under the License. 159d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair */ 169d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismairpackage org.mockftpserver.core; 179d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair 189d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair/** 199d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * Represents an error specific to the MockFtpServer project. 209d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * 219d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * @version $Revision$ - $Date$ 229d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * 239d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * @author Chris Mair 249d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair */ 259d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismairpublic class MockFtpServerException extends RuntimeException { 269d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair 279d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair /** 289d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * Create a new instance with the specified detail message and no cause 299d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * @param message - the exception detail message 309d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair */ 319d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair public MockFtpServerException(String message) { 329d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair super(message); 339d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair } 349d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair 359d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair /** 369d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * Create a new instance with the specified detail message and no cause 379d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * @param cause - the Throwable cause 389d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair */ 399d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair public MockFtpServerException(Throwable cause) { 409d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair super(cause); 419d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair } 429d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair 439d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair /** 449d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * Create a new instance with the specified detail message and cause 459d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * @param message - the exception detail message 469d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair * @param cause - the Throwable cause 479d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair */ 489d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair public MockFtpServerException(String message, Throwable cause) { 499d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair super(message, cause); 509d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair } 519d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair 529d9aece7b2c2865253fdd2946a4d11a4f642c5aechrismair} 53