enum abstract LastOperationStatus(Null<Int>)
package openfl.globalization
Available on all platforms
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
inlineread onlyBUFFER_OVERFLOW_ERROR:LastOperationStatus = 0
Indicates that given buffer is not enough to hold the result.
inlineread 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.
inlineread onlyILLEGAL_ARGUMENT_ERROR:LastOperationStatus = 2
Indicates that an argument passed to a method was illegal.
inlineread 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.
inlineread onlyINVALID_ATTR_VALUE:LastOperationStatus = 4
Indicates that a given attribute value is out of the expected range.
inlineread onlyINVALID_CHAR_FOUND:LastOperationStatus = 5
Indicates that invalid Unicode value was found.
inlineread onlyMEMORY_ALLOCATION_ERROR:LastOperationStatus = 6
Indicates that memory allocation has failed.
inlineread 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.
inlineread onlyNUMBER_OVERFLOW_ERROR:LastOperationStatus = 8
Indicates that an operation resulted a value that exceeds a specified numeric type.
inlineread 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
.
inlineread 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.
inlineread onlyPLATFORM_API_FAILED:LastOperationStatus = 11
Indicates that an underlying platform API failed for an operation.
inlineread onlyTRUNCATED_CHAR_FOUND:LastOperationStatus = 12
Indicates that a truncated Unicode character value was found.
inlineread onlyUNEXPECTED_TOKEN:LastOperationStatus = 13
Indicates that an unexpected token was detected in a Locale ID string.
inlineread 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
.
inlineread 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.
inlineread 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
.