auto e = new CardBoardException("Transmogrification failed"); try { throw e; } catch (CardBoardException e) { test!("==")(e.message(), "Transmogrification failed"[]); test!("==")(e.file, __FILE__[]); test!("==")(e.line, __LINE__ - 9); }
See Implementation