Package org.apache.wicket

Examples of org.apache.wicket.WicketRuntimeException


        {
          setMethod.invoke(object, converted);
        }
        catch (InvocationTargetException ex)
        {
          throw new WicketRuntimeException("Error calling method: " + setMethod +
            " on object: " + object, ex.getCause());
        }
        catch (Exception ex)
        {
          throw new WicketRuntimeException("Error calling method: " + setMethod +
            " on object: " + object, ex);
        }
      }
      else if (field != null)
      {
        try
        {
          field.set(object, converted);
        }
        catch (Exception ex)
        {
          throw new WicketRuntimeException("Error setting field: " + field +
            " on object: " + object, ex);
        }
      }
      else
      {
        throw new WicketRuntimeException("no set method defined for value: " + value +
          " on object: " + object + " while respective getMethod being " +
          getMethod.getName());
      }
    }
View Full Code Here


      {
        return field.get(object);
      }
      catch (Exception ex)
      {
        throw new WicketRuntimeException("Error getting field value of field " + field +
          " from object " + object, ex);
      }
    }
View Full Code Here

      {
        field.set(object, value);
      }
      catch (Exception ex)
      {
        throw new WicketRuntimeException("Error setting field value of field " + field +
          " on object " + object + ", value " + value, ex);
      }
    }
View Full Code Here

    {
      data.getWriteCallback().writeData(attributes);
    }
    catch (IOException iox)
    {
      throw new WicketRuntimeException(iox);
    }
  }
View Full Code Here

  {
    Application application = Application.get();

    if (application instanceof WebApplication == false)
    {
      throw new WicketRuntimeException(
        "The application attached to the current thread is not a " +
          WebApplication.class.getSimpleName());
    }

    return (WebApplication)application;
View Full Code Here

          servletRequest.setCharacterEncoding(requestEncoding);
        }
      }
      catch (UnsupportedEncodingException e)
      {
        throw new WicketRuntimeException(e);
      }
    }

    if (hasFilterFactoryManager())
    {
View Full Code Here

        {
          throw (RuntimeException)e;
        }
        else
        {
          throw new WicketRuntimeException(e);
        }
      }
      else
      {
        return delegate.map(e);
View Full Code Here

  public Animate(Map<String, String> properties, AnimateDuration duration, String easing,
      JsScope callback)
  {
    if (properties == null)
    {
      throw new WicketRuntimeException("properties cannot be null");
    }

    this.properties = properties;
    this.options = new HashMap<String, Serializable>();
    this.options.put("duration", duration);
View Full Code Here

   */
  public Animate(Map<String, String> properties, Map<String, Serializable> options)
  {
    if (properties == null)
    {
      throw new WicketRuntimeException("properties cannot be null");
    }

    this.properties = properties;
    this.options = options == null ? new HashMap<String, Serializable>() : options;
  }
View Full Code Here

  @Override
  public CharSequence getJavascriptOption()
  {
    if (speed == null && effectSpeed == null)
    {
      throw new WicketRuntimeException("AnimateDuration: you must specify a speed !!");
    }

    if (speed != null)
    {
      return speed.toString();
View Full Code Here

TOP

Related Classes of org.apache.wicket.WicketRuntimeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.