export abstract class Exception { param message protected constructor ( public message ) { } } export class APIException extends Exception { constructor ( message , public statusCode , public requestURL , public responseData , public errorId , public errorCode ) { super ( message ) ; } } export class NetworkConnectionException extends Exception { constructor ( message , public requestURL , public originalErrorMessage = "" ) { super ( message ) ; } } export class JavaScriptException extends Exception { constructor ( message , public originalError ) { super ( message ) ; } }