The LastOperationStatus class enumerates constant values that represent the status of the most recent globalization service operation. These values can be retrieved through the read-only property lastOperationStatus available in most globalization classes.

Variables

@:value(cast 0)@:impl@:enuminlineread onlyBUFFER_OVERFLOW_ERROR:LastOperationStatus = 0

Indicates that given buffer is not enough to hold the result.

@:value(cast 1)@:impl@:enuminlineread onlyERROR_CODE_UNKNOWN:LastOperationStatus = 1

Indicates that the return error code is not known. Any non-static method or read/write properties can return this error when the operation is not successful and the return error code is not known.

@:value(cast 2)@:impl@:enuminlineread onlyILLEGAL_ARGUMENT_ERROR:LastOperationStatus = 2

Indicates that an argument passed to a method was illegal.

@:value(cast 3)@:impl@:enuminlineread onlyINDEX_OUT_OF_BOUNDS_ERROR:LastOperationStatus = 3

Indicates that an iterator went out of range or an invalid parameter was specified for month, day, or time.

@:value(cast 4)@:impl@:enuminlineread onlyINVALID_ATTR_VALUE:LastOperationStatus = 4

Indicates that a given attribute value is out of the expected range.

@:value(cast 5)@:impl@:enuminlineread onlyINVALID_CHAR_FOUND:LastOperationStatus = 5

Indicates that invalid Unicode value was found.

@:value(cast 6)@:impl@:enuminlineread onlyMEMORY_ALLOCATION_ERROR:LastOperationStatus = 6

Indicates that memory allocation has failed.

@:value(cast 7)@:impl@:enuminlineread onlyNO_ERROR:LastOperationStatus = 7

Indicates that the last operation succeeded without any errors. This status can be returned by all constructors, non-static methods, static methods and read/write properties.

@:value(cast 8)@:impl@:enuminlineread onlyNUMBER_OVERFLOW_ERROR:LastOperationStatus = 8

Indicates that an operation resulted a value that exceeds a specified numeric type.

@:value(cast 9)@:impl@:enuminlineread onlyPARSE_ERROR:LastOperationStatus = 9

Indicates that the parsing of a number failed. This status can be returned by parsing methods of the formatter classes, such as CurrencyFormatter.parse() and NumberFormatter.parseNumber(). For example, if the value "12abc34" is passed as the parameter to the CurrencyFormatter.parse() method, the method returns "NaN" and sets the lastOperationStatus value to LastOperationStatus.PARSE_ERROR.

@:value(cast 10)@:impl@:enuminlineread onlyPATTERN_SYNTAX_ERROR:LastOperationStatus = 10

Indicates that the pattern for formatting a number, date, or time is invalid. This status is set when the user's operating system does not support the given pattern.

@:value(cast 11)@:impl@:enuminlineread onlyPLATFORM_API_FAILED:LastOperationStatus = 11

Indicates that an underlying platform API failed for an operation.

@:value(cast 12)@:impl@:enuminlineread onlyTRUNCATED_CHAR_FOUND:LastOperationStatus = 12

Indicates that a truncated Unicode character value was found.

@:value(cast 13)@:impl@:enuminlineread onlyUNEXPECTED_TOKEN:LastOperationStatus = 13

Indicates that an unexpected token was detected in a Locale ID string.

@:value(cast 14)@:impl@:enuminlineread onlyUNSUPPORTED_ERROR:LastOperationStatus = 14

Indicates that the requested operation or option is not supported. This status can be returned by methods like DateTimeFormatter.setDateTimePattern() and when retrieving properties like Collator.ignoreCase.

@:value(cast 15)@:impl@:enuminlineread onlyUSING_DEFAULT_WARNING:LastOperationStatus = 15

Indicates that an operating system default value was used during the most recent operation. Class constructors can return this status.

@:value(cast 16)@:impl@:enuminlineread onlyUSING_FALLBACK_WARNING:LastOperationStatus = 16

Indicates that a fallback value was set during the most recent operation. This status can be returned by constructors and methods like DateTimeFormatter.setDateTimeStyles(), and when retrieving properties like CurrencyFormatter.groupingPattern.