ObjectNotFound

new ObjectNotFound(consumedCapacity)

Parameters:
NameTypeDescription
consumedCapacityObject

The consumed capacity for the operation.

Methods

exists() → {boolean}

Returns false, since the object was not found.

Returns:

False.

Type: 
boolean

getNumericConsumedCapacity(type, includeRelatedopt) → {number}

Returns the numeric consumed capacity for the operation. For compatibility this method supports an includeRelated parameter, but it is ignored, since there are no related objects to consider.

Parameters:
NameTypeAttributesDefaultDescription
typestring

The type of operation.

includeRelatedboolean<optional>
false

Whether to include related capacity.

Returns:

The numeric consumed capacity.

Type: 
number