/**
 * Copyright © 2024 Nevis Security AG. All rights reserved.
 */

import { DeviceInformationCheckError } from './DeviceInformationCheckError';
import { Server } from '../../../localData/Server';

/**
 * Unknown device information check error, handling not categorized error cases.
 *
 * @group Errors
 * @category Device Information Check
 */
export class DeviceInformationCheckUnknownError extends DeviceInformationCheckError {
	/**
	 * 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 description provides details about the error that occurred.
	 * @param cause the exception (if any) that caused this error.
	 * @param server the server where the error occurred.
	 */
	constructor(description: string, cause?: string, server?: Server) {
		super();
		this.description = description;
		this.cause = cause;
		this.server = server;
	}
}
