1 19 20 26 package org.enhydra.dods; 27 28 import org.enhydra.dods.exceptions.DodsBaseException; 29 30 public class DODSException extends DodsBaseException { 31 32 33 34 39 public DODSException(String msg) { 40 super(msg); 41 } 42 43 49 public DODSException(Throwable cause) { 50 super(cause); 51 } 52 53 60 public DODSException(String msg, Throwable cause) { 61 super(msg, cause); 62 } 63 64 69 public String getLocalizedMessage() { 70 String message = getMessage(); 71 int index = message.lastIndexOf(": "); 72 73 if (index != -1) { 74 return message.substring(index + 1); 75 } else { 76 return getMessage(); 77 } 78 } 79 } 80 | Popular Tags |