Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.paypal.api.payments;
 
 import  com.paypal.core.rest.JSONFormatter;
 
 public class ErrorDetails  {

Name of the field that caused the error.
 
	private String field;

Reason for the error.
	private String issue;

Default Constructor
	public ErrorDetails() {
	}

Parameterized Constructor
	public ErrorDetails(String fieldString issue) {
		this. = field;
		this. = issue;
	}


Setter for field
	public ErrorDetails setField(String field) {
		this. = field;
		return this;
	}

Getter for field
	public String getField() {
		return this.;
	}


Setter for issue
	public ErrorDetails setIssue(String issue) {
		this. = issue;
		return this;
	}

Getter for issue
	public String getIssue() {
		return this.;
	}

Returns a JSON string corresponding to object state

Returns:
JSON representation
	public String toJSON() {
		return JSONFormatter.toJSON(this);
	}
	public String toString() {
		return toJSON();
	}
New to GrepCode? Check out our FAQ X