These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 SSLHandshakeException class.
* Assertion: constructs SSLHandshakeException when <code>msg</code> is * null */ public void testSSLHandshakeException02() { String msg = null; SSLHandshakeException tE = new SSLHandshakeException(msg); assertNull("getMessage() must return null.", tE.getMessage()); assertNull("getCause() must return null", tE.getCause()); } }
* Sends fatal alert * @param description * @param reason */ protected void fatalAlert(byte description, String reason) { throw new AlertException(description, new SSLHandshakeException(reason)); } /** * Sends fatal alert * @param description * @param reason * @param cause */ protected void fatalAlert(byte description, String reason, Throwable cause) { throw new AlertException(description, new SSLException(reason, cause)); } }
* Sends fatal alert * @param description * @param reason */ protected void fatalAlert(byte description, String reason) { throw new AlertException(description, new SSLHandshakeException(reason)); } /** * Sends fatal alert * @param description * @param reason * @param cause */ protected void fatalAlert(byte description, String reason, Throwable cause) { throw new AlertException(description, new SSLException(reason, cause)); } }
* Sends fatal alert * @param description * @param reason */ protected void fatalAlert(byte description, String reason) { throw new AlertException(description, new SSLHandshakeException(reason)); } /** * Sends fatal alert * @param description * @param reason * @param cause */ protected void fatalAlert(byte description, String reason, Throwable cause) { throw new AlertException(description, new SSLException(reason, cause)); } }
* Sends fatal alert * @param description * @param reason */ protected void fatalAlert(byte description, String reason) { throw new AlertException(description, new SSLHandshakeException(reason)); } /** * Sends fatal alert * @param description * @param reason * @param cause */ protected void fatalAlert(byte description, String reason, Throwable cause) { throw new AlertException(description, new SSLException(reason, cause)); } }
"Long message for Exception. Long message for Exception. Long message for Exception." }; @Override protected Object[] getData() { return new Object[] { new SSLHandshakeException(null), new SSLHandshakeException(msgs[0]), new SSLHandshakeException(msgs[1]) }; } }
"Long message for Exception. Long message for Exception. Long message for Exception." }; @Override protected Object[] getData() { return new Object[] { new SSLHandshakeException(null), new SSLHandshakeException(msgs[0]), new SSLHandshakeException(msgs[1]) }; } public static void main(String[] args) { junit.textui.TestRunner.run(SSLHandshakeExceptionTest.class); } }