protected void PassExceptionToListener(ExceptionLevel level, ExceptionType type) { var handler = this.ShowException; if (handler != null) { handler(this, new RepositoryExceptionEventArgs(level, type)); } }