C# Class Braintree.ValidationErrors

A collection of Validation Errors returned by the Braintree Gateway
Mostra file Open project: braintree/braintree_dotnet Class Usage Examples

Public Methods

Method Description
AddError ( string fieldName, ValidationError error ) : void
AddErrors ( string objectName, ValidationErrors errors ) : void
All ( ) : List
ByFormField ( ) : List>.Dictionary
DeepAll ( ) : List
ForIndex ( int index ) : ValidationErrors
ForObject ( string objectName ) : ValidationErrors
OnField ( string fieldName ) : List
ValidationErrors ( ) : System.Collections.Generic
ValidationErrors ( Braintree.NodeWrapper node ) : System.Collections.Generic

Protected Methods

Method Description
ComposeFieldName ( string prefix, string element ) : string

Private Methods

Method Description
PopulateErrors ( Braintree.NodeWrapper node ) : void
PopulateTopLevelErrors ( List childErrors ) : void

Method Details

AddError() public method

public AddError ( string fieldName, ValidationError error ) : void
fieldName string
error ValidationError
return void

AddErrors() public method

public AddErrors ( string objectName, ValidationErrors errors ) : void
objectName string
errors ValidationErrors
return void

All() public method

public All ( ) : List
return List

ByFormField() public method

public ByFormField ( ) : List>.Dictionary
return List>.Dictionary

ComposeFieldName() protected method

protected ComposeFieldName ( string prefix, string element ) : string
prefix string
element string
return string

DeepAll() public method

public DeepAll ( ) : List
return List

ForIndex() public method

public ForIndex ( int index ) : ValidationErrors
index int
return ValidationErrors

ForObject() public method

public ForObject ( string objectName ) : ValidationErrors
objectName string
return ValidationErrors

OnField() public method

public OnField ( string fieldName ) : List
fieldName string
return List

ValidationErrors() public method

public ValidationErrors ( ) : System.Collections.Generic
return System.Collections.Generic

ValidationErrors() public method

public ValidationErrors ( Braintree.NodeWrapper node ) : System.Collections.Generic
node Braintree.NodeWrapper
return System.Collections.Generic