com.launchkey.sdk.transport.domain.Error Maven / Gradle / Ivy
Show all versions of launchkey-sdk Show documentation
/**
* Copyright 2017 iovation, Inc.
*
* Licensed under the MIT License.
* You may not use this file except in compliance with the License.
* A copy of the License is located in the "LICENSE.txt" file accompanying
* this file. This file is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.launchkey.sdk.transport.domain;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Error {
private final String errorCode;
private final Object errorDetail;
@JsonCreator
public Error(
@JsonProperty(value = "error_code") String errorCode,
@JsonProperty(value = "error_detail") Object errorDetail
) {
this.errorCode = errorCode;
this.errorDetail = errorDetail;
}
public String getErrorCode() {
return errorCode;
}
public Object getErrorDetail() {
return errorDetail;
}
}