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

public CodedException ( String faultCode , Throwable cause , String format , Object ... args ) { super ( String . format ( format , args ) , cause ) ; this . faultCode = faultCode ; faultDetail = ExceptionUtils . getStackTrace ( this ) ; faultString = String . format ( format , args ) ; setArguments ( args ) ; }
creates new exception with fault code and fault message . the message is constructed using string . format ( ) . from parameters format and args .
