private static AdeException adeExceptionOf(Throwable t){
  if (t instanceof AdeException) {
    return (AdeException)t;
  }
 else {
    return new AdeInternalException("adeExceptionOf( " + t.getMessage() + " )",t);
  }
}

private static AdeException adeExceptionOf ( Throwable t ) { if ( t instanceof AdeException ) { return ( AdeException ) t ; } else { return new AdeInternalException ( "adeExceptionOf( " + t . getMessage ( ) + " )" , t ) ; } }
return an instance of adeexception ( typically : adeinternalexception ) which either is , or represents , the input exception . trusting that usage errors would be certain to throw a adeusageexception , it seems safe to throw a adeinternalexception in all other cases .
