@Test public void testClassifyOther() { LdapTlsHandshakeException e = new LdapTlsHandshakeException( "msg", new IOException( "foo" ) ); assertThat( e.getMessage(), equalTo( "msg, reason: Unspecified: foo" ) ); }
@Override public String getMessage() { String message = super.getMessage(); message += ", reason: " + failCause.getReasonPhrase(); Throwable rootCause = failCause.getRootCause(); if ( rootCause != null && rootCause != this ) { message += ": " + rootCause.getMessage(); } return message; }
LdapTlsHandshakeException extends LdapException { @Override public String getMessage() { String message = super.getMessage(); message += ", reason: " + failCause.getReasonPhrase(); Throwable rootCause = failCause.getRootCause(); if ( rootCause != null && rootCause != this ) { message += ": " + rootCause.getMessage(); } return message; } }
LdapTlsHandshakeException extends LdapException { @Override public String getMessage() { String message = super.getMessage(); message += ", reason: " + failCause.getReasonPhrase(); Throwable rootCause = failCause.getRootCause(); if ( rootCause != null && rootCause != this ) { message += ": " + rootCause.getMessage(); } return message; } LdapTlsHandshakeException( String message, Throwable cause ); }
LdapTlsHandshakeException extends LdapException { @Override public String getMessage() { String message = super.getMessage(); message += ", reason: " + failCause.getReasonPhrase(); Throwable rootCause = failCause.getRootCause(); if ( rootCause != null && rootCause != this ) { message += ": " + rootCause.getMessage(); } return message; } LdapTlsHandshakeException( String message, Throwable cause ); LdapTlsHandshakeFailCause getFailCause(); @Override String getMessage(); }
LdapTlsHandshakeException extends LdapException { @Override public String getMessage() { String message = super.getMessage(); message += ", reason: " + failCause.getReasonPhrase(); Throwable rootCause = failCause.getRootCause(); if ( rootCause != null && rootCause != this ) { message += ": " + rootCause.getMessage(); } return message; } LdapTlsHandshakeException( String message, Throwable cause ); LdapTlsHandshakeFailCause getFailCause(); @Override String getMessage();  }