org.activemath.sequencer
Class NoAvailableExercisesException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.activemath.sequencer.NoAvailableExercisesException
All Implemented Interfaces:
Serializable

public class NoAvailableExercisesException
extends Exception

If we can't find exercises for the user. We need this exception because we want to handle the problem only by the very outside (by the controller) Returning "null" instead could work, but it's too ugly.

See Also:
Serialized Form

Constructor Summary
NoAvailableExercisesException(String context)
          Provide the reason by giving a text.
 
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

NoAvailableExercisesException

public NoAvailableExercisesException(String context)
Provide the reason by giving a text.

Parameters:
context - could be any string, including saying "problem from Tutorial component" or other component.