com.sibvisions.rad.ui.gwt.shared.event
Class ErrorResult

java.lang.Object
  extended by com.sibvisions.rad.ui.gwt.shared.event.ServiceResult
      extended by com.sibvisions.rad.ui.gwt.shared.event.ErrorResult
All Implemented Interfaces:
Serializable

public class ErrorResult
extends ServiceResult

The ErrorResult contains the response for a failed request.

See Also:
Serialized Form

Nested Class Summary
static class ErrorResult.ErrorType
          the possible errors.
 
Constructor Summary
ErrorResult()
          Creates a new instance of ErrorResult.
ErrorResult(String pClientId, ErrorResult.ErrorType pError)
          Creates a new instance of ErrorResult for a specific client.
 
Method Summary
 String getClientId()
          Gets the id of the client.
 String getParameter(String pName)
          Gets the value for a user defined parameter.
 ErrorResult.ErrorType getType()
          Gets the error type.
 String setParameter(String pName, String pValue)
          Sets a user defined event parameter.
 void setType(ErrorResult.ErrorType pError)
          Sets the error type.
 
Methods inherited from class com.sibvisions.rad.ui.gwt.shared.event.ServiceResult
getUI, setUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorResult

public ErrorResult()
Creates a new instance of ErrorResult. Only for serialization.


ErrorResult

public ErrorResult(String pClientId,
                   ErrorResult.ErrorType pError)
Creates a new instance of ErrorResult for a specific client.

Parameters:
pClientId - the id of the client
pError - the error type
Method Detail

setType

public void setType(ErrorResult.ErrorType pError)
Sets the error type.

Parameters:
pError - the type

getType

public ErrorResult.ErrorType getType()
Gets the error type.

Returns:
the type

getClientId

public String getClientId()
Gets the id of the client.

Returns:
the id

setParameter

public String setParameter(String pName,
                           String pValue)
Sets a user defined event parameter.

Parameters:
pName - the parameter name
pValue - the value or null to remove the property with the specified name
Returns:
the previous value or null if the property was not set

getParameter

public String getParameter(String pName)
Gets the value for a user defined parameter.

Parameters:
pName - the parameter name
Returns:
the value of the parameter or null if the parameter was not set


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.