UNPKG

@picovoice/cheetah-react-native

Version:

Picovoice Cheetah React Native binding

102 lines (100 loc) 3.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CheetahStopIterationError = exports.CheetahRuntimeError = exports.CheetahMemoryError = exports.CheetahKeyError = exports.CheetahInvalidStateError = exports.CheetahInvalidArgumentError = exports.CheetahIOError = exports.CheetahError = exports.CheetahActivationThrottledError = exports.CheetahActivationRefusedError = exports.CheetahActivationLimitError = exports.CheetahActivationError = void 0; // // Copyright 2022 Picovoice Inc. // // You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE" // file accompanying this source. // // Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on // an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the // specific language governing permissions and limitations under the License. // class CheetahError extends Error { constructor(message) { super(message); this.name = 'CheetahError'; } } exports.CheetahError = CheetahError; class CheetahMemoryError extends CheetahError { constructor(message) { super(message); this.name = 'CheetahMemoryError'; } } exports.CheetahMemoryError = CheetahMemoryError; class CheetahIOError extends CheetahError { constructor(message) { super(message); this.name = 'CheetahIOError'; } } exports.CheetahIOError = CheetahIOError; class CheetahInvalidArgumentError extends CheetahError { constructor(message) { super(message); this.name = 'CheetahInvalidArgumentError'; } } exports.CheetahInvalidArgumentError = CheetahInvalidArgumentError; class CheetahStopIterationError extends CheetahError { constructor(message) { super(message); this.name = 'CheetahStopIterationError'; } } exports.CheetahStopIterationError = CheetahStopIterationError; class CheetahKeyError extends CheetahError { constructor(message) { super(message); this.name = 'CheetahKeyError'; } } exports.CheetahKeyError = CheetahKeyError; class CheetahInvalidStateError extends CheetahError { constructor(message) { super(message); this.name = 'CheetahInvalidStateError'; } } exports.CheetahInvalidStateError = CheetahInvalidStateError; class CheetahRuntimeError extends CheetahError { constructor(message) { super(message); this.name = 'CheetahRuntimeError'; } } exports.CheetahRuntimeError = CheetahRuntimeError; class CheetahActivationError extends CheetahError { constructor(message) { super(message); this.name = 'CheetahActivationError'; } } exports.CheetahActivationError = CheetahActivationError; class CheetahActivationLimitError extends CheetahError { constructor(message) { super(message); this.name = 'CheetahActivationLimitError'; } } exports.CheetahActivationLimitError = CheetahActivationLimitError; class CheetahActivationThrottledError extends CheetahError { constructor(message) { super(message); this.name = 'CheetahActivationThrottledError'; } } exports.CheetahActivationThrottledError = CheetahActivationThrottledError; class CheetahActivationRefusedError extends CheetahError { constructor(message) { super(message); this.name = 'CheetahActivationRefusedError'; } } exports.CheetahActivationRefusedError = CheetahActivationRefusedError; //# sourceMappingURL=cheetah_errors.js.map