Tests if something has failure method.
struct A { void failure(Exception e); } struct B { void _failure(Exception e); } struct C { void failure(); } static assert(hasFailure!A); static assert(!hasFailure!B); static assert(!hasFailure!C);
See Implementation
Tests if something has failure method.