public static void Handle(Exception exception, IExecutable executable) { if (executable.HandlesException(exception)) { ((dynamic)executable).HandleException((dynamic)exception); } else { HandleUnknownExceptions(); } }