class AriaddnaException extends Exception {

    public String getErrorMessage() {
        Throwable tmp = getCause();
        if (tmp != null) {
            Throwable t;
            while (true) {
                t = tmp.getCause();
                if (t == null) {
                    break;
                }
                tmp = tmp.getCause();
            }
            return tmp.getMessage();
        }
        return getMessage();
    }

    public  AriaddnaException(Throwable cause);
    public  AriaddnaException(String traceMessage);
    public  AriaddnaException(String traceMessage, String errorMessage);
    public  AriaddnaException(String traceMessage, Throwable cause);
    public  AriaddnaException(String traceMessage, String errorMessage, Throwable cause);

}