original_string: public static function setError($code, $message = '')
      {
          if (!isset(self::$errorCodes[$code])) {
              throw new \InvalidArgumentException(sprintf('No such error code: "%s"', $code));
          }
  
          self::$errorMessage = $message ? sprintf('%s: %s', $message, self::$errorCodes[$code]) : self::$errorCodes[$code];
          self::$errorCode = $code;
      }
code: public static function setError($code, $message = '')
      {
          if (!isset(self::$errorCodes[$code])) {
              throw new \InvalidArgumentException(sprintf('No such error code: "%s"', $code));
          }
  
          self::$errorMessage = $message ? sprintf('%s: %s', $message, self::$errorCodes[$code]) : self::$errorCodes[$code];
          self::$errorCode = $code;
      }
code_tokens: public static function setError ( $ code , $ message = '' ) { if ( ! isset ( self :: $ errorCodes [ $ code ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'No such error code: "%s"' , $ code ) ) ; } self :: $ errorMessage = $ message ? sprintf ( '%s: %s' , $ message , self :: $ errorCodes [ $ code ] ) : self :: $ errorCodes [ $ code ] ; self :: $ errorCode = $ code ; }
docstring: Sets the current error.
  
  @param int    $code    One of the error constants in this class
  @param string $message The ICU class error message
  
  @throws \InvalidArgumentException If the code is not one of the error constants in this class
docstring_tokens: Sets the current error .