net.anotheria.maf.json
Interface JSONErrorScope

All Superinterfaces:
Serializable
All Known Implementing Classes:
JSONResponse

public interface JSONErrorScope
extends Serializable

JSON Response error scope interface.

Author:
Alexandr Bolbat

Method Summary
 void addError(String error)
          Add global error for this response-scope.
 void addError(String fieldName, String error)
          Add field error for this response-scope.
 JSONErrorScope getErrorObject(String objectName)
          Get error object to error scope.
 

Method Detail

addError

void addError(String error)
Add global error for this response-scope.

Parameters:
error - - error text

addError

void addError(String fieldName,
              String error)
Add field error for this response-scope.

Parameters:
fieldName - - field name
error - - error text

getErrorObject

JSONErrorScope getErrorObject(String objectName)
Get error object to error scope. New instance will be created if object not found in errors scope.

Parameters:
objectName - - inner error object name in error scope
Returns:
JSONErrorScope


Copyright © 2010-2013 anotheria.net. All Rights Reserved.