static
setError(int $code, string $message = '')
Sets the current error.
Parameters int $code One of the error constants in this class string $message The ICU class error message Exceptions InvalidArgumentException If the code is not one of the error constants in this class