DeclaredException IExceptionInitScope.FindExceptionByName(string exceptionName) { int errorCode; if (!exceptions.TryGetValue(exceptionName, out errorCode)) return null; return new DeclaredException(errorCode, exceptionName); }