// Error codes for these errors are not really defined anywhere.
INVALID_VALUES_ERR = 100,
IO_ERR = 101,
- PERMISSION_DENIED_ERR = 102,
SERVICE_NOT_AVAILABLE_ERR = 103,
VERIFICATION_ERR = 105,
DefineErrorClass(DataCloneError);
DefineErrorClass(InvalidValuesError);
DefineErrorClass(IoError);
-DefineErrorClass(PermissionDeniedError);
DefineErrorClass(ServiceNotAvailableError);
DefineErrorClass(VerificationError);
DefineErrorClass(OperationCanceledError);
DeclareErrorClass(DataCloneError, ErrorCode::DATA_CLONE_ERR);
DeclareErrorClass(InvalidValuesError, ErrorCode::INVALID_VALUES_ERR);
DeclareErrorClass(IoError, ErrorCode::IO_ERR);
-DeclareErrorClass(PermissionDeniedError, ErrorCode::PERMISSION_DENIED_ERR);
DeclareErrorClass(ServiceNotAvailableError, ErrorCode::SERVICE_NOT_AVAILABLE_ERR);
DeclareErrorClass(VerificationError, ErrorCode::VERIFICATION_ERR);
DeclareErrorClass(OperationCanceledError, ErrorCode::OPERATION_CANCELED_ERR);
case SENSOR_ERROR_NOT_SUPPORTED:
return ErrorCode::NOT_SUPPORTED_ERR;
case SENSOR_ERROR_PERMISSION_DENIED:
- return ErrorCode::PERMISSION_DENIED_ERR;
+ return ErrorCode::SECURITY_ERR;
case SENSOR_ERROR_NOT_AVAILABLE:
return ErrorCode::SERVICE_NOT_AVAILABLE_ERR;
case SENSOR_ERROR_NO_DATA:
// Error codes for these errors are not really defined anywhere.
INVALID_VALUES_ERR: 100,
IO_ERR: 101,
- PERMISSION_DENIED_ERR: 102,
SERVICE_NOT_AVAILABLE_ERR: 103,
VERIFICATION_ERR: 105
};
code_to_name[errors['INVALID_VALUES_ERR']] = 'InvalidValuesError';
code_to_name[errors['IO_ERR']] = 'IOError';
-code_to_name[errors['PERMISSION_DENIED_ERR']] = 'PermissionDeniedError';
code_to_name[errors['SERVICE_NOT_AVAILABLE_ERR']] = 'ServiceNotAvailableError';
code_to_name[errors['VERIFICATION_ERR']] = 'VerificationError';
case WIDGET_ERROR_RESOURCE_BUSY:
return common::ServiceNotAvailableError(error);
case WIDGET_ERROR_PERMISSION_DENIED:
- return common::PermissionDeniedError(error);
+ return common::SecurityError(error);
case WIDGET_ERROR_TIMED_OUT:
return common::TimeoutError(error);
case WIDGET_ERROR_NOT_SUPPORTED: