1 | import { ErrorDescription } from './ErrorDescription';
|
2 | import { ApplicationException } from './ApplicationException';
|
3 | /**
|
4 | * Factory to recreate exceptions from [[ErrorDescription]] values passed through the wire.
|
5 | *
|
6 | * @see [[ErrorDescription]]
|
7 | * @see [[ApplicationException]]
|
8 | */
|
9 | export 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 | }
|