1 28 29 package com.caucho.quercus; 30 31 import com.caucho.util.L10N; 32 33 public class UnimplementedException 34 extends UnsupportedOperationException 35 { 36 private final static L10N L = new L10N(UnimplementedException.class); 37 38 private static final String MESSAGE 39 = "{0} has not been implemented. " 40 + "A more recent version of Quercus may be available at http://www.caucho.com/download " 41 + "Requests for unimplemented features can be entered in the bugtrack http://bugs.caucho.com"; 42 43 public UnimplementedException() 44 { 45 super(createMessage(null)); 46 } 47 48 public UnimplementedException(String functionality) 49 { 50 super(createMessage(functionality)); 51 } 52 53 public UnimplementedException(String functionality, Throwable cause) 54 { 55 super(createMessage(functionality), cause); 56 } 57 58 public UnimplementedException(Throwable cause) 59 { 60 super(createMessage(null), cause); 61 } 62 63 private static String createMessage(String functionality) 64 { 65 if (functionality == null) 66 functionality = "This functionality"; 67 else 68 functionality = "`" + functionality + "'"; 69 70 return L.l(MESSAGE, functionality); 71 } 72 } 73 | Popular Tags |