Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
        private TeacherServiceException CreateAndLogServiceException(Xeption exception)
        {
            var teacherServiceException = new TeacherServiceException(exception);

            this.loggingBroker.LogError(teacherServiceException);

            return(teacherServiceException);
        }
Ejemplo n.º 3
0
        private ExamDependencyException CreateAndLogDependencyException(Xeption exception)
        {
            var examDependencyException = new ExamDependencyException(exception);

            this.loggingBroker.LogError(examDependencyException);

            return(examDependencyException);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 6
0
        private ExamValidationException CreateAndLogValidationException(Xeption exception)
        {
            var examValidationException = new ExamValidationException(exception);

            this.loggingBroker.LogError(examValidationException);

            return(examValidationException);
        }
Ejemplo n.º 7
0
        private TeacherDependencyException CreateAndLogDependencyException(Xeption exception)
        {
            var teacherDependencyException = new TeacherDependencyException(exception);

            this.loggingBroker.LogError(teacherDependencyException);

            return(teacherDependencyException);
        }
Ejemplo n.º 8
0
        private ExamServiceException CreateAndLogServiceException(Xeption exception)
        {
            var examServiceException = new ExamServiceException(exception);

            this.loggingBroker.LogError(examServiceException);

            return(examServiceException);
        }
Ejemplo n.º 9
0
        private CourseServiceException CreateAndLogServiceException(
            Xeption exception)
        {
            var courseServiceException =
                new CourseServiceException(exception);

            this.loggingBroker.LogError(courseServiceException);

            return(courseServiceException);
        }
Ejemplo n.º 10
0
        private CourseDependencyException CreateAndLogDependencyException(
            Xeption exception)
        {
            var courseDependencyException =
                new CourseDependencyException(exception);

            this.loggingBroker.LogError(courseDependencyException);

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

            this.loggingBroker.LogCritical(assignmentAttachmentDependencyException);

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