Class WrongValueException

All Implemented Interfaces:
Serializable, org.zkoss.lang.Expectable, org.zkoss.mesg.Messageable, org.zkoss.mesg.MessageConst
Direct Known Subclasses:
ArithmeticWrongValueException

public class WrongValueException extends OperationException
Denotes the value passed to a setter (a.k.a., mutator) of a component is wrong.
Author:
tomyeh
See Also:
  • Constructor Details

    • WrongValueException

      public WrongValueException(Component comp, String msg)
      Constructs a wrong value exception to show an error box at the client.
      Parameters:
      comp - the component that causes this exception.
    • WrongValueException

      public WrongValueException(Component comp, int code, Object[] fmtArgs)
      Constructs a wrong value exception to show an error box at the client.
      Parameters:
      comp - the component that causes this exception.
    • WrongValueException

      public WrongValueException(Component comp, int code, Object fmtArg)
      Constructs a wrong value exception to show an error box at the client.
      Parameters:
      comp - the component that causes this exception.
    • WrongValueException

      public WrongValueException(Component comp, int code)
      Constructs a wrong value exception to show an error box at the client.
      Parameters:
      comp - the component that causes this exception.
    • WrongValueException

      public WrongValueException(Component comp, String msg, Throwable cause)
      Constructs a wrong value exception.
      Since:
      5.0.11
    • WrongValueException

      public WrongValueException(String msg, Throwable cause)
    • WrongValueException

      public WrongValueException(String s)
    • WrongValueException

      public WrongValueException(Throwable cause)
    • WrongValueException

      public WrongValueException()
    • WrongValueException

      public WrongValueException(int code, Object[] fmtArgs, Throwable cause)
    • WrongValueException

      public WrongValueException(int code, Object fmtArg, Throwable cause)
    • WrongValueException

      public WrongValueException(int code, Object[] fmtArgs)
    • WrongValueException

      public WrongValueException(int code, Object fmtArg)
    • WrongValueException

      public WrongValueException(int code, Throwable cause)
    • WrongValueException

      public WrongValueException(int code)
  • Method Details

    • getComponent

      public Component getComponent()
      Returns the component that causes this exception, or null.