UNPKG

698 BTypeScriptView Raw
1import { ErrorDescription } from './ErrorDescription';
2import { ApplicationException } from './ApplicationException';
3/**
4 * Factory to recreate exceptions from [[ErrorDescription]] values passed through the wire.
5 *
6 * @see [[ErrorDescription]]
7 * @see [[ApplicationException]]
8 */
9export declare class ApplicationExceptionFactory {
10 /**
11 * Recreates ApplicationException object from serialized ErrorDescription.
12 *
13 * It tries to restore original exception type using type or error category fields.
14 *
15 * @param description a serialized error description received as a result of remote call
16 */
17 static create(description: ErrorDescription): ApplicationException;
18}