react-native-bridge-firebase
Version:
Can easy to use Analytics/Crash/Config/Message of Firebase on ReactNative
10 lines (8 loc) • 329 B
JavaScript
export default function EventTypeError(message) {
Error.call(this, message);
Error.captureStackTrace(this, this.constructor);
this.name = 'EventTypeError';
this.message = message || 'Invalid Event Type';
}
EventTypeError.prototype = Object.create(Error.prototype);
EventTypeError.prototype.constructor = EventTypeError;