1 18 package org.drftpd.commands; 19 20 import net.sf.drftpd.master.FtpRequest; 21 22 26 public class UnhandledCommandException extends Exception { 27 public UnhandledCommandException() { 28 super(); 29 } 30 31 public static UnhandledCommandException create(Class clazz, FtpRequest req) { 32 return create(clazz, req.getCommand()); 33 } 34 35 public UnhandledCommandException(String message) { 36 super(message); 37 } 38 39 public UnhandledCommandException(String message, Throwable cause) { 40 super(message, cause); 41 } 42 43 public UnhandledCommandException(Throwable cause) { 44 super(cause); 45 } 46 47 public static UnhandledCommandException create(Class clazz, String command) { 48 return new UnhandledCommandException(clazz.getName()+" doesn't know how to handle "+command); 49 } 50 } 51 | Popular Tags |