de.mklinger.qetcher.client.model.v1.impl.ErrorImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qetcher-client-bundle Show documentation
Show all versions of qetcher-client-bundle Show documentation
Qetcher Java client, OSGi bundle, minimal dependencies
package de.mklinger.qetcher.client.model.v1.impl;
import de.mklinger.qetcher.client.model.v1.Error;
import de.mklinger.qetcher.client.model.v1.builder.ErrorBuilder;
/**
* @author Marc Klinger - mklinger[at]mklinger[dot]de
*/
public class ErrorImpl implements Error {
private final String status;
private final String message;
private final String errorId;
public ErrorImpl(final ErrorBuilder builder) {
this.status = builder.getStatus();
this.message = builder.getMessage();
this.errorId = builder.getErrorId();
}
@Override
public String getStatus() {
return status;
}
@Override
public String getMessage() {
return message;
}
@Override
public String getErrorId() {
return errorId;
}
@Override
public String toString() {
return "ErrorImpl ["
+ (status != null ? "status=" + status + ", " : "")
+ (message != null ? "message=" + message + ", " : "")
+ (errorId != null ? "errorId=" + errorId : "")
+ "]";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy