public CodedException(String faultCode,Throwable cause){
  super(cause);
  this.faultCode=faultCode;
  this.faultDetail=ExceptionUtils.getStackTrace(cause);
  this.faultString=cause.getMessage();
}

public CodedException ( String faultCode , Throwable cause ) { super ( cause ) ; this . faultCode = faultCode ; this . faultDetail = ExceptionUtils . getStackTrace ( cause ) ; this . faultString = cause . getMessage ( ) ; }
creates exception from fault code and cause .
