
org.sourcelab.github.client.response.Error Maven / Gradle / Ivy
The newest version!
package org.sourcelab.github.client.response;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Error {
private final String field;
private final String code;
/**
* Constructor.
* @param field The field with the error.
* @param code The error code relating to the field.
*/
@JsonCreator
public Error(
@JsonProperty("field") final String field,
@JsonProperty("code") final String code
) {
this.field = field;
this.code = code;
}
public String getField() {
return field;
}
public String getCode() {
return code;
}
@Override
public String toString() {
return "Error{"
+ "field='" + field + '\''
+ ", code='" + code + '\''
+ '}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy