private static Expression <Func <Xeption, bool> > SameValidationExceptionAs(Xeption expectedException) { return(actualException => actualException.Message == expectedException.Message && actualException.InnerException.Message == expectedException.InnerException.Message && (actualException.InnerException as Xeption).DataEquals(expectedException.InnerException.Data)); }
private TeacherServiceException CreateAndLogServiceException(Xeption exception) { var teacherServiceException = new TeacherServiceException(exception); this.loggingBroker.LogError(teacherServiceException); return(teacherServiceException); }
private ExamDependencyException CreateAndLogDependencyException(Xeption exception) { var examDependencyException = new ExamDependencyException(exception); this.loggingBroker.LogError(examDependencyException); return(examDependencyException); }
private UserDependencyException CreateAndLogCriticalDependencyException(Xeption exception) { var userDependencyException = new UserDependencyException(exception); this.loggingBroker.LogCritical(userDependencyException); return(userDependencyException); }
private ClassroomDependencyException CreateAndLogDependencyException(Xeption exception) { var classroomDependencyException = new ClassroomDependencyException(exception); this.loggingBroker.LogError(classroomDependencyException); return(classroomDependencyException); }
private ExamValidationException CreateAndLogValidationException(Xeption exception) { var examValidationException = new ExamValidationException(exception); this.loggingBroker.LogError(examValidationException); return(examValidationException); }
private TeacherDependencyException CreateAndLogDependencyException(Xeption exception) { var teacherDependencyException = new TeacherDependencyException(exception); this.loggingBroker.LogError(teacherDependencyException); return(teacherDependencyException); }
private ExamServiceException CreateAndLogServiceException(Xeption exception) { var examServiceException = new ExamServiceException(exception); this.loggingBroker.LogError(examServiceException); return(examServiceException); }
private CourseServiceException CreateAndLogServiceException( Xeption exception) { var courseServiceException = new CourseServiceException(exception); this.loggingBroker.LogError(courseServiceException); return(courseServiceException); }
private CourseDependencyException CreateAndLogDependencyException( Xeption exception) { var courseDependencyException = new CourseDependencyException(exception); this.loggingBroker.LogError(courseDependencyException); return(courseDependencyException); }
public ExamDependencyException(Xeption innerException) : base(message: "Exam dependency error occurred, contact support.", innerException) { }
public ExamDependencyValidationException(Xeption innerException) : base(message: "Exam dependency validation error occurred, fix the errors.", innerException) { }
public ExamValidationException(Xeption innerException) : base(message: "Invalid input, contact support.", innerException) { }
public StudentDependencyValidationException(Xeption innerException) : base(message: "Student dependency validation error occurred, please try again.", innerException) { }
public TeacherDependencyValidationException(Xeption innerException) : base(message: "Teacher dependency validation occurred, fix the errors and try again.", innerException) { }
public ClassroomDependencyValidationException(Xeption innerException) : base(message: "Classroom dependency validation occurred, fix the errors and try again.", innerException) { }
private static Expression <Func <Xeption, bool> > SameExceptionAs( Xeption expectedException) { return(actualException => actualException.Message == expectedException.Message && actualException.InnerException.Message == expectedException.InnerException.Message); }
public TeacherServiceException(Xeption innerException) : base(message: "Teacher service error occurred, contact support.", innerException) { }
private AssignmentAttachmentDependencyException CreateAndLogCriticalDependencyException(Xeption exception) { var assignmentAttachmentDependencyException = new AssignmentAttachmentDependencyException(exception); this.loggingBroker.LogCritical(assignmentAttachmentDependencyException); return(assignmentAttachmentDependencyException); }
private AssignmentAttachmentDependencyException CreateAndLogDependencyException(Xeption exception) { var AssignmentAttachmentDependencyException = new AssignmentAttachmentDependencyException(exception); this.loggingBroker.LogError(AssignmentAttachmentDependencyException); return(AssignmentAttachmentDependencyException); }
private StudentDependencyValidationException CreateAndLogDependencyValidationException(Xeption exception) { var studentDependencyValidationException = new StudentDependencyValidationException(exception); this.loggingBroker.LogError(studentDependencyValidationException); return(studentDependencyValidationException); }
public ExamServiceException(Xeption innerException) : base(message: "Exam service error occurred, contact support.", innerException) { }
public TeacherDependencyException(Xeption innerException) : base(message: "Teacher dependency error occurred, contact support.", innerException) { }