org.olat.course.condition.interpreter
Class ArgumentParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.olat.course.condition.interpreter.ArgumentParseException
All Implemented Interfaces:
java.io.Serializable

public class ArgumentParseException
extends java.lang.RuntimeException

Description:

Author:
Felix Jost
See Also:
Serialized Form

Field Summary
static int NEEDS_FEWER_ARGUMENTS
          Errorcode if the function needs fewer arguments
static int NEEDS_MORE_ARGUMENTS
          Errorcode if the function needs more arguments
static int REFERENCE_NOT_FOUND
          Errorcode if the argument is a reference, which can not be resolved.
I.e.
static int WRONG_ARGUMENT_FORMAT
          Errorcode if an argument has the wrong type or is mal formatted.
I.e.
 
Constructor Summary
ArgumentParseException(int errNo, java.lang.String functionName, java.lang.String wrongArgs, java.lang.String whatsWrong, java.lang.String solutionProposal)
           
ArgumentParseException(java.lang.String msg)
          Thrown if an an exception occurs while parsing function arguments.
 
Method Summary
 int getErrNo()
           
 java.lang.String getFunctionName()
           
 java.lang.String getSolutionProposal()
          the returned string is an untranslated translation key
 java.lang.String getWhatsWrong()
          the returned string is an untranslated translation key
 java.lang.String getWrongArgs()
          the returned string is an untranslated translation key
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NEEDS_MORE_ARGUMENTS

public static final int NEEDS_MORE_ARGUMENTS
Errorcode if the function needs more arguments

See Also:
Constant Field Values

NEEDS_FEWER_ARGUMENTS

public static final int NEEDS_FEWER_ARGUMENTS
Errorcode if the function needs fewer arguments

See Also:
Constant Field Values

WRONG_ARGUMENT_FORMAT

public static final int WRONG_ARGUMENT_FORMAT
Errorcode if an argument has the wrong type or is mal formatted.
I.e. wrong date format, NodeId instead of groupname.

See Also:
Constant Field Values

REFERENCE_NOT_FOUND

public static final int REFERENCE_NOT_FOUND
Errorcode if the argument is a reference, which can not be resolved.
I.e. a groupname, areaname or other course node id which is not existing

See Also:
Constant Field Values
Constructor Detail

ArgumentParseException

public ArgumentParseException(java.lang.String msg)
Thrown if an an exception occurs while parsing function arguments.

Parameters:
msg -

ArgumentParseException

public ArgumentParseException(int errNo,
                              java.lang.String functionName,
                              java.lang.String wrongArgs,
                              java.lang.String whatsWrong,
                              java.lang.String solutionProposal)
Parameters:
errNo -
functionName -
wrongArgs -
whatsWrong -
solutionProposal -
Method Detail

getErrNo

public int getErrNo()
Returns:
Returns the errNo.

getFunctionName

public java.lang.String getFunctionName()
Returns:
Returns the functionName.

getWhatsWrong

public java.lang.String getWhatsWrong()
the returned string is an untranslated translation key

Returns:
Returns the whatsWrong.

getWrongArgs

public java.lang.String getWrongArgs()
the returned string is an untranslated translation key

Returns:
Returns the wrongArgs.

getSolutionProposal

public java.lang.String getSolutionProposal()
the returned string is an untranslated translation key

Returns: