示例#1
0
 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));
 }
示例#2
0
        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);
        }
示例#4
0
        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);
        }
示例#7
0
        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);
        }
示例#9
0
        private CourseServiceException CreateAndLogServiceException(
            Xeption exception)
        {
            var courseServiceException =
                new CourseServiceException(exception);

            this.loggingBroker.LogError(courseServiceException);

            return(courseServiceException);
        }
示例#10
0
        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)
 {
 }
示例#12
0
 public ExamDependencyValidationException(Xeption innerException)
     : base(message: "Exam dependency validation error occurred, fix the errors.", innerException)
 {
 }
示例#13
0
 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)
 {
 }
示例#17
0
 private static Expression <Func <Xeption, bool> > SameExceptionAs(
     Xeption expectedException)
 {
     return(actualException => actualException.Message == expectedException.Message &&
            actualException.InnerException.Message == expectedException.InnerException.Message);
 }
示例#18
0
 public TeacherServiceException(Xeption innerException)
     : base(message: "Teacher service error occurred, contact support.", innerException)
 {
 }
示例#19
0
        private AssignmentAttachmentDependencyException CreateAndLogCriticalDependencyException(Xeption exception)
        {
            var assignmentAttachmentDependencyException =
                new AssignmentAttachmentDependencyException(exception);

            this.loggingBroker.LogCritical(assignmentAttachmentDependencyException);

            return(assignmentAttachmentDependencyException);
        }
示例#20
0
        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);
        }
示例#22
0
 public ExamServiceException(Xeption innerException)
     : base(message: "Exam service error occurred, contact support.", innerException)
 {
 }
示例#23
0
 public TeacherDependencyException(Xeption innerException)
     : base(message: "Teacher dependency error occurred, contact support.", innerException)
 {
 }