Sha256: 1326f287d1902e425d87cc72f879d6205a5bdf45ba7e1280a4cf252aee8b926a
Contents?: true
Size: 738 Bytes
Versions: 44
Compression:
Stored size: 738 Bytes
Contents
package org.embulk.input.marketo.exception; import org.embulk.input.marketo.model.MarketoError; import java.util.List; /** * Exception class for all API Exception * Created by tai.khuu on 9/5/17. */ public class MarketoAPIException extends Exception { private final List<MarketoError> marketoErrors; public MarketoAPIException(List<MarketoError> marketoErrors) { this.marketoErrors = marketoErrors; } public List<MarketoError> getMarketoErrors() { return marketoErrors; } @Override public String getMessage() { MarketoError error = getMarketoErrors().get(0); return "Marketo API Error, code: " + error.getCode() + ", message: " + error.getMessage(); } }
Version data entries
44 entries across 44 versions & 4 rubygems