IncorrectTypeException

Namespace: TSUI.Exceptions
Extends: Exception
Implements: IException
Exported: Yes
JSDoc status: Complete

Associated source files:

Description

An incorrect type exception. Automatically adds descriptive information in the constructor.

Constructor

constructor(public GivenType: string = "", public ExpectedType: string = "", public Trace: string = "", public InnerException: IException = null)
Creates a new ArgumentException instance with specified information. Automatically adds descriptive information about this particular type of exception.
Note: Also automatically logs the exception in the browser log.
  • GivenType : The name of the type which was given.
  • ExpectedType : The name of the type which was expected.
  • Trace : The origin of the
  • InnerException : The inner exception which lead to this exception, if any.

Properties

ExpectedType: string;
The name of the type which was expected.
GivenType: string;
The name of the type which was given.
InnerException: IException;
The inner exception which lead to this exception, if any.
Message: string;
The message to describe the exception.
Trace: string;
The origin of the exception.

Methods

toString(): string;
Converts the exception to a human-readable string representation.

Last edited Jun 19, 2013 at 7:51 PM by EdwardNutting, version 2

Comments

No comments yet.