Code example for SSLException

Methods: getCausegetMessage

0
     * Test for <code>SSLException(String)</code> constructor Assertion: 
     * constructs SSLException when <code>msg</code> is null 
     */ 
    public void testSSLException02() { 
        String msg = null;
        SSLException tE = new SSLException(msg);
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
 
    /** 
     * Test for <code>DigestException(Throwable)</code> constructor Assertion: 
     * constructs DigestException when <code>cause</code> is null 
     */ 
    public void testSSLException03() { 
        Throwable cause = null;
        SSLException tE = new SSLException(cause);
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
Contextual code suggestions in your IDE  Get Codota for Java