1 20 21 package org.apache.directory.ldapstudio.browser.core.internal.model; 22 23 24 public class ConnectionException extends Exception  25 { 26 27 private static final long serialVersionUID = 1L; 28 29 private int ldapStatusCode; 30 31 private Throwable originalThrowable; 32 33 34 public ConnectionException( int ldapStatusCode, String message, Throwable originalThrowable ) 35 { 36 super( message ); 37 this.ldapStatusCode = ldapStatusCode; 38 this.originalThrowable = originalThrowable; 39 } 40 41 42 public ConnectionException( String message ) 43 { 44 this( -1, message, null ); 45 } 46 47 48 public ConnectionException( Throwable t ) 49 { 50 this( -1, t.getMessage(), t ); 51 } 52 53 54 public int getLdapStatusCode() 55 { 56 return ldapStatusCode; 57 } 58 59 60 public Throwable getOriginalThrowable() 61 { 62 return originalThrowable; 63 } 64 65 } 66 | Popular Tags |