The operation was aborted, typically due to a concurrency issue like transaction
aborts, etc.
Constant Value:10
public static final intALREADY_EXISTS
Some resource that we attempted to create already exists.
Constant Value:6
public static final intCANCELLED
The operation was cancelled (typically by the caller).
Constant Value:1
public static final intDATA_LOSS
Unrecoverable data loss or corruption.
Constant Value:15
public static final intDEADLINE_EXCEEDED
Deadline expired before operation could complete. For operations that change the
state of the system, this error may be returned even if the operation has completed
successfully. For example, a successful response from a server could have been delayed
long enough for the deadline to expire.
Constant Value:4
public static final intFAILED_PRECONDITION
Operation was rejected because the system is not in a state required for the
operation's execution.
Constant Value:9
public static final intINTERNAL
Internal errors. Means some invariants expected by underlying system has been
broken. If you see one of these errors, something is very broken.
Constant Value:13
public static final intINVALID_ARGUMENT
Client specified an invalid argument. Note that this differs from
FAILED_PRECONDITION. INVALID_ARGUMENT indicates arguments that are problematic
regardless of the state of the system (e.g., an invalid field name).
Constant Value:3
public static final intMODEL_HASH_MISMATCH
The downloaded model's hash doesn't match the expected value.
Constant Value:102
public static final intMODEL_INCOMPATIBLE_WITH_TFLITE
The downloaded model isn't compatible with the TFLite runtime.
Constant Value:100
public static final intNOT_ENOUGH_SPACE
There is not enough space left on the device.
Constant Value:101
public static final intNOT_FOUND
Some requested resource was not found.
Constant Value:5
public static final intOK
The operation completed successfully. FirebaseMLException will never have a status
of OK.
Constant Value:0
public static final intOUT_OF_RANGE
Operation was attempted past the valid range.
Constant Value:11
public static final intPERMISSION_DENIED
The caller does not have permission to execute the specified operation.
Constant Value:7
public static final intRESOURCE_EXHAUSTED
Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire
file system is out of space.
Constant Value:8
public static final intUNAUTHENTICATED
The request does not have valid authentication credentials for the operation.
Constant Value:16
public static final intUNAVAILABLE
The service is currently unavailable. This is a most likely a transient condition
and may be corrected by retrying with a backoff.
In ML Kit, this error is mostly about the models being not available yet.
Constant Value:14
public static final intUNIMPLEMENTED
Operation is not implemented or not supported/enabled.
Constant Value:12
public static final intUNKNOWN
Unknown error or an error from a different error domain.
Constant Value:2
Public Methods
public intgetCode()
Gets the error code for the Firebase ML operation that failed.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-08-08 UTC."],[],[],null,["public class **FirebaseMLException** extends [FirebaseException](//developers.google.com/android/reference/com/google/firebase/FirebaseException.html) \nA class of exceptions thrown by Firebase Machine Learning \n\nNested Class Summary\n\nConstant Summary\n\nPublic Method Summary\n\nInherited Method Summary \nFrom class java.lang.Throwable \n\nFrom class java.lang.Object \n\nConstants \n\npublic static final int\n**ABORTED** \nThe operation was aborted, typically due to a concurrency issue like transaction\naborts, etc. \nConstant Value: 10 \n\npublic static final int\n**ALREADY_EXISTS** \nSome resource that we attempted to create already exists. \nConstant Value: 6 \n\npublic static final int\n**CANCELLED** \nThe operation was cancelled (typically by the caller). \nConstant Value: 1 \n\npublic static final int\n**DATA_LOSS** \nUnrecoverable data loss or corruption. \nConstant Value: 15 \n\npublic static final int\n**DEADLINE_EXCEEDED** \nDeadline expired before operation could complete. For operations that change the\nstate of the system, this error may be returned even if the operation has completed\nsuccessfully. For example, a successful response from a server could have been delayed\nlong enough for the deadline to expire. \nConstant Value: 4 \n\npublic static final int\n**FAILED_PRECONDITION** \nOperation was rejected because the system is not in a state required for the\noperation's execution. \nConstant Value: 9 \n\npublic static final int\n**INTERNAL** \nInternal errors. Means some invariants expected by underlying system has been\nbroken. If you see one of these errors, something is very broken. \nConstant Value: 13 \n\npublic static final int\n**INVALID_ARGUMENT** \nClient specified an invalid argument. Note that this differs from\nFAILED_PRECONDITION. INVALID_ARGUMENT indicates arguments that are problematic\nregardless of the state of the system (e.g., an invalid field name). \nConstant Value: 3 \n\npublic static final int\n**MODEL_HASH_MISMATCH** \nThe downloaded model's hash doesn't match the expected value. \nConstant Value: 102 \n\npublic static final int\n**MODEL_INCOMPATIBLE_WITH_TFLITE** \nThe downloaded model isn't compatible with the TFLite runtime. \nConstant Value: 100 \n\npublic static final int\n**NOT_ENOUGH_SPACE** \nThere is not enough space left on the device. \nConstant Value: 101 \n\npublic static final int\n**NOT_FOUND** \nSome requested resource was not found. \nConstant Value: 5 \n\npublic static final int\n**OK** \nThe operation completed successfully. FirebaseMLException will never have a status\nof OK. \nConstant Value: 0 \n\npublic static final int\n**OUT_OF_RANGE** \nOperation was attempted past the valid range. \nConstant Value: 11 \n\npublic static final int\n**PERMISSION_DENIED** \nThe caller does not have permission to execute the specified operation. \nConstant Value: 7 \n\npublic static final int\n**RESOURCE_EXHAUSTED** \nSome resource has been exhausted, perhaps a per-user quota, or perhaps the entire\nfile system is out of space. \nConstant Value: 8 \n\npublic static final int\n**UNAUTHENTICATED** \nThe request does not have valid authentication credentials for the operation. \nConstant Value: 16 \n\npublic static final int\n**UNAVAILABLE** \nThe service is currently unavailable. This is a most likely a transient condition\nand may be corrected by retrying with a backoff.\n\nIn ML Kit, this error is mostly about the models being not available yet. \nConstant Value: 14 \n\npublic static final int\n**UNIMPLEMENTED** \nOperation is not implemented or not supported/enabled. \nConstant Value: 12 \n\npublic static final int\n**UNKNOWN** \nUnknown error or an error from a different error domain. \nConstant Value: 2\n\nPublic Methods \n\npublic int **getCode** () \nGets the error code for the Firebase ML operation that failed."]]