Class ForseenProblem

  • All Implemented Interfaces:
    java.io.Serializable

    public class ForseenProblem
    extends java.lang.Exception
    An exception type to plaster over the absence of first-class continuations in java. Represents a problem that has been foreseen, and handled.
    Author:
    Alex Kalderimis
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ForseenProblem​(java.lang.String msgKey)
      Construct one of these objects.
      ForseenProblem​(java.lang.String msgKey, java.lang.Object... args)
      Construct one of these objects.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.struts.action.ActionMessage getActionMessage()
      Get a struts action message, rather than a simple string message.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • ForseenProblem

        public ForseenProblem​(java.lang.String msgKey)
        Construct one of these objects.
        Parameters:
        msgKey - The action message key to use.
      • ForseenProblem

        public ForseenProblem​(java.lang.String msgKey,
                              java.lang.Object... args)
        Construct one of these objects.
        Parameters:
        msgKey - The action message key.
        args - The arguments to the action message.
    • Method Detail

      • getActionMessage

        public org.apache.struts.action.ActionMessage getActionMessage()
        Get a struts action message, rather than a simple string message.
        Returns:
        an action message for saying something to the user.