Class GradebookException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.sakaiproject.service.gradebook.shared.GradebookException
All Implemented Interfaces:
Direct Known Subclasses:
AssessmentNotFoundException, AssignmentHasIllegalPointsException, ConflictingAssignmentNameException, ConflictingCategoryNameException, ConflictingExternalIdException, ConflictingSpreadsheetNameException, GradebookNotFoundException, InvalidCategoryException, InvalidGradeException, MultipleAssignmentSavingException, UnknownUserException

public class GradebookException
extends RuntimeException

An exception thrown by the gradebook application. If a gradebook client does not want to handle each of the gradebook's specific exceptions individually, it can simply deal with GradebookException to handle all possible exceptions. These were changed to runtime exceptions after the 2.1 release to make it easier to throw them while using Hibernate. By default, Spring will mark a transaction as rollback-only when a runtime exception is thrown by a proxied method but will leave the transaction alone when a checked exception is thrown. To preserve the original transaction-preserving behavior, this exception class is explicitly called out in the Spring TransactionProxyFactoryBean configuration file using the following syntax: PROPAGATION_REQUIRED,+org.sakaiproject.service.gradebook.shared.GradebookException

See Also:
Serialized Form

Constructor Summary
protected GradebookException(String message)
protected GradebookException(Throwable t)
Method Summary
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


protected GradebookException(String message)


protected GradebookException(Throwable t)

Copyright © 2011 Sakai Project. All Rights Reserved.