@twilio/voice-react-native-sdk
Version:
Twilio Voice React Native SDK
20 lines (16 loc) • 526 B
text/typescript
import { TwilioError } from './TwilioError';
/**
* Error describing that an SDK function is invoked with an invalid argument.
*
* @public
*/
export class InvalidArgumentError extends TwilioError {
description: string = 'Invalid argument error.';
explanation: string =
'The SDK has encountered a situation where invalid arguments were passed.';
constructor(message: string) {
super(message);
Object.setPrototypeOf(this, InvalidArgumentError.prototype);
this.name = InvalidArgumentError.name;
}
}