org.jboss.test.selenium.guard.request
Class RequestTypeGuardException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jboss.test.selenium.guard.request.RequestTypeGuardException
All Implemented Interfaces:
Serializable

public class RequestTypeGuardException
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
RequestTypeGuardException(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

RequestTypeGuardException

public RequestTypeGuardException(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


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.