public EntitlementException(int errorCode){
  this.errorCode=errorCode;
  this.message=getLocalizedMessage(Locale.getDefault());
}

public EntitlementException ( int errorCode ) { this . errorCode = errorCode ; this . message = getLocalizedMessage ( Locale . getDefault ( ) ) ; }
creates an entitlement exception .
