export function createException ( ... args ) { throw new Exception ( args [ 0 ] , args [ 1 ] ) ; } export class Exception extends Error { constructor ( name , message ) { super ( message ) ; this . name = name ; this . message = message ; } }