UNPKG

@nevis-security/nevis-mobile-authentication-sdk-react

Version:

React Native plugin for Nevis Mobile Authentication SDK. Supports only mobile.

41 lines (35 loc) 998 B
/** * Copyright © 2024 Nevis Security AG. All rights reserved. */ import { PendingOutOfBandOperationsError } from './PendingOutOfBandOperationsError'; import { Server } from '../../../localData/Server'; /** * An error that indicates that a network error occurred. */ export class PendingOutOfBandOperationsNetworkError extends PendingOutOfBandOperationsError { /** * Provides details about the error that occurred. */ description: string; /** * The exception (if any) that caused this error. */ cause?: string; /** * The server where the error occurred. */ server: Server; /** * The default constructor. * * @param server the server where the error occurred. * @param description provides details about the error that occurred. * @param cause the exception (if any) that caused this error. */ constructor(server: Server, description: string, cause?: string) { super(); this.server = server; this.description = description; this.cause = cause; } }