errors

Every error airspace throws extends AirspaceError, and all of them are exported from airspace, so you can catch them by class.

ErrorThrown whenCarries
ValidationErrora value fails its schema, on read or writecollection, rkey, issues
ConflictErrorthe record changed since you read it, and ifMatch was rejectedcollection, rkey, cid
ScopeErrorthe session was authorized before a collection in your model existedmissingScope
SpacesUnsupportedErrora space call against a PDS without space support

After a ConflictError, re-read the record, merge, and try again. See concurrent writes.

A ScopeError means the user has to authorize again. See OAuth and permission sets.