This repository has been archived on 2019-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
Typertext/lib/Typertext/BaseException.ts
2014-02-26 13:12:37 -06:00

25 lines
551 B
TypeScript

module Typertext {
export class BaseException<T> {
private code:number;
private custom:T;
private message:string;
constructor(message:string, code:number, custom:T) {
this.message = message;
this.code = code;
this.custom = custom;
}
public GetCode():number {
return this.code;
}
public GetMessage():string {
return this.message;
}
public GetCustom():T {
return this.custom;
}
}
}