Graphene Implementation 1.0.0.CR3

org.jboss.arquillian.ajocado.guard
Class RequestGuardException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jboss.arquillian.ajocado.guard.RequestGuardException
All Implemented Interfaces:
Serializable

public class RequestGuardException
extends RuntimeException

This exception determines that when interacting with browser using Selenium, the wrong request type was executed.

Version:
$Revision$
Author:
Lukas Fryc
See Also:
Serialized Form

Constructor Summary
RequestGuardException(RequestType requestExpected, RequestType requestDone)
           
 
Method Summary
 String getMessage()
           
 RequestType getRequestDone()
          Returns the RequestType which was actually done
 RequestType getRequestExpected()
          Returns the RequestType which was expected to be done
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

RequestGuardException

public RequestGuardException(RequestType requestExpected,
                             RequestType requestDone)
Method Detail

getRequestExpected

public RequestType getRequestExpected()
Returns the RequestType which was expected to be done

Returns:
the requestExpected RequestType which was expected to be done

getRequestDone

public RequestType getRequestDone()
Returns the RequestType which was actually done

Returns:
the requestDone RequestType which was actually done

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

Graphene Implementation 1.0.0.CR3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.