Pacote | spark.globalization |
Classe | public final class LastOperationStatus |
Herança | LastOperationStatus Object |
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.55 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
lastOperationStatus
available in most globalization classes.
Elementos da API relacionados
Constante | Definido por | ||
---|---|---|---|
BUFFER_OVERFLOW_ERROR : String = "bufferOverflowError" [estático]
Indicates that given buffer is not enough to hold the result. | LastOperationStatus | ||
ERROR_CODE_UNKNOWN : String = "errorCodeUnknown" [estático]
Indicates that the return error code is not known. | LastOperationStatus | ||
ILLEGAL_ARGUMENT_ERROR : String = "illegalArgumentError" [estático]
Indicates that an argument passed to a method was illegal. | LastOperationStatus | ||
INDEX_OUT_OF_BOUNDS_ERROR : String = "indexOutOfBoundsError" [estático]
Indicates that an iterator went out of range or an invalid parameter was
specified for month, day, or time. | LastOperationStatus | ||
INVALID_ATTR_VALUE : String = "invalidAttrValue" [estático]
Indicates that a given attribute value is out of the expected range. | LastOperationStatus | ||
INVALID_CHAR_FOUND : String = "invalidCharFound" [estático]
Indicates that invalid Unicode value was found. | LastOperationStatus | ||
LOCALE_UNDEFINED_ERROR : String = "localeUndefinedError" [estático]
Indicates that Locale is not defined. | LastOperationStatus | ||
MEMORY_ALLOCATION_ERROR : String = "memoryAllocationError" [estático]
Indicates that memory allocation has failed. | LastOperationStatus | ||
NO_ERROR : String = "noError" [estático]
Indicates that the last operation succeeded without any errors. | LastOperationStatus | ||
NUMBER_OVERFLOW_ERROR : String = "numberOverflowError" [estático]
Indicates that an operation resulted a value that exceeds a specified
numeric type. | LastOperationStatus | ||
PARSE_ERROR : String = "parseError" [estático]
Indicates that the parsing of a number failed. | LastOperationStatus | ||
PATTERN_SYNTAX_ERROR : String = "patternSyntaxError" [estático]
Indicates that the pattern for formatting a number, date, or time is
invalid. | LastOperationStatus | ||
PLATFORM_API_FAILED : String = "platformAPIFailed" [estático]
Indicates that an underlying platform API failed for an operation. | LastOperationStatus | ||
TRUNCATED_CHAR_FOUND : String = "truncatedCharFound" [estático]
Indicates that a truncated Unicode character value was found. | LastOperationStatus | ||
UNEXPECTED_TOKEN : String = "unexpectedToken" [estático]
Indicates that an unexpected token was detected in a Locale ID string. | LastOperationStatus | ||
UNSUPPORTED_ERROR : String = "unsupportedError" [estático]
Indicates that the requested operation or option is not supported. | LastOperationStatus | ||
USING_DEFAULT_WARNING : String = "usingDefaultWarning" [estático]
Indicates that an operating system default value was used during the
most recent operation. | LastOperationStatus | ||
USING_FALLBACK_WARNING : String = "usingFallbackWarning" [estático]
Indicates that a fallback value was set during the most recent
operation. | LastOperationStatus |
BUFFER_OVERFLOW_ERROR | Constante |
public static const BUFFER_OVERFLOW_ERROR:String = "bufferOverflowError"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
Indicates that given buffer is not enough to hold the result.
Elementos da API relacionados
ERROR_CODE_UNKNOWN | Constante |
public static const ERROR_CODE_UNKNOWN:String = "errorCodeUnknown"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5s |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
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.
Elementos da API relacionados
ILLEGAL_ARGUMENT_ERROR | Constante |
public static const ILLEGAL_ARGUMENT_ERROR:String = "illegalArgumentError"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
Indicates that an argument passed to a method was illegal.
For example, the following code shows that an invalid argument error
status is set when CurrencyFormatter.grouping
property is
set to the invalid value "3;".
var cf:CurrencyFormatter = new CurrencyFormatter(); cf.setStyle("locale","en_US"); cf.groupingPattern = "3;"; trace(cf.lastOperationStatus); // "illegalArgumentError"
Elementos da API relacionados
INDEX_OUT_OF_BOUNDS_ERROR | Constante |
public static const INDEX_OUT_OF_BOUNDS_ERROR:String = "indexOutOfBoundsError"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
Indicates that an iterator went out of range or an invalid parameter was specified for month, day, or time.
Elementos da API relacionados
INVALID_ATTR_VALUE | Constante |
public static const INVALID_ATTR_VALUE:String = "invalidAttrValue"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
Indicates that a given attribute value is out of the expected range.
The following example shows that setting the
NumberFormatter.negativeNumberFormat
property to an
out-of-range value results in an invalid attribute value status.
var nf:NumberFormatter = new NumberFormatter(); nf.setStyle("locale","en_US"); nf.negativeNumberFormat = 9; nf.lastOperationStatus; // "invalidAttrValue"
Elementos da API relacionados
INVALID_CHAR_FOUND | Constante |
public static const INVALID_CHAR_FOUND:String = "invalidCharFound"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
Indicates that invalid Unicode value was found.
Elementos da API relacionados
LOCALE_UNDEFINED_ERROR | Constante |
public static const LOCALE_UNDEFINED_ERROR:String = "localeUndefinedError"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
Indicates that Locale
is not defined.
MEMORY_ALLOCATION_ERROR | Constante |
public static const MEMORY_ALLOCATION_ERROR:String = "memoryAllocationError"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
Indicates that memory allocation has failed.
Elementos da API relacionados
NO_ERROR | Constante |
public static const NO_ERROR:String = "noError"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
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.
Elementos da API relacionados
NUMBER_OVERFLOW_ERROR | Constante |
public static const NUMBER_OVERFLOW_ERROR:String = "numberOverflowError"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
Indicates that an operation resulted a value that exceeds a specified numeric type.
Elementos da API relacionados
PARSE_ERROR | Constante |
public static const PARSE_ERROR:String = "parseError"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
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
.
Elementos da API relacionados
PATTERN_SYNTAX_ERROR | Constante |
public static const PATTERN_SYNTAX_ERROR:String = "patternSyntaxError"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
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.
For example, the following code shows the value of the
lastOperationStatus
property after an invalid "xx" pattern
is used for date formatting:
var df:DateTimeFormatter = new DateTimeFormatter(); df.setStyle("locale","en_US"); df.setDateTimePattern("xx"); trace(df.lastOperationStatus); // "patternSyntaxError"
Elementos da API relacionados
PLATFORM_API_FAILED | Constante |
public static const PLATFORM_API_FAILED:String = "platformAPIFailed"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
Indicates that an underlying platform API failed for an operation.
Elementos da API relacionados
TRUNCATED_CHAR_FOUND | Constante |
public static const TRUNCATED_CHAR_FOUND:String = "truncatedCharFound"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
Indicates that a truncated Unicode character value was found.
Elementos da API relacionados
UNEXPECTED_TOKEN | Constante |
public static const UNEXPECTED_TOKEN:String = "unexpectedToken"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
Indicates that an unexpected token was detected in a Locale ID string.
For example, the following code shows the value of the
lastOperationStatus
property after an incomplete string is
used when requesting a locale ID.
As a result the lastOperationStatus
property is set to the
value UNEXPECTED_TOKEN
after a call to the
LocaleID.getKeysAndValues()
method.
var locale:flash.globalization.LocaleID = new flash.globalization.LocaleID("en-US@Collation"); var kav:Object = locale.getKeysAndValues(); trace(locale.lastOperationStatus); // "unexpectedToken"
Elementos da API relacionados
UNSUPPORTED_ERROR | Constante |
public static const UNSUPPORTED_ERROR:String = "unsupportedError"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
Indicates that the requested operation or option is not supported.
This status can be returned by methods such as
DateTimeFormatter.setDateTimePattern()
and when retrieving
properties suce as Collator.ignoreCase
.
Elementos da API relacionados
USING_DEFAULT_WARNING | Constante |
public static const USING_DEFAULT_WARNING:String = "usingDefaultWarning"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
Indicates that an operating system default value was used during the most recent operation. Class constructors can return this status.
Elementos da API relacionados
USING_FALLBACK_WARNING | Constante |
public static const USING_FALLBACK_WARNING:String = "usingFallbackWarning"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 4.5 |
Versões de runtime: | Flash Player 10.1, AIR 2.5 |
Indicates that a fallback value was set during the most recent
operation.
This status can be returned by constructors and methods such as
DateTimeFormatter.setDateTimeStyles()
, and when retrieving
properties such as CurrencyFormatter.groupingPattern
.
Elementos da API relacionados
Wed Jun 13 2018, 11:10 AM Z