public SubscriptionBaseApiException(final BillingExceptionBase e) { super(e, e.getCode(), e.getMessage()); }
public BillingExceptionBase(final BillingExceptionBase cause) { this.formattedMsg = cause.getMessage(); this.code = cause.getCode(); this.cause = cause; }
public BillingExceptionBase(final BillingExceptionBase cause) { this.formattedMsg = cause.getMessage(); this.code = cause.getCode(); this.cause = cause; }
public EntitlementApiException(final BillingExceptionBase e) { super(e, e.getCode(), e.getMessage()); }
public SubscriptionBaseApiException(final BillingExceptionBase e) { super(e, e.getCode(), e.getMessage()); }
public SubscriptionApiException(final BillingExceptionBase e) { super(e, e.getCode(), e.getMessage()); }
public BillingExceptionJson(final Exception exception, final boolean withStackTrace) { this(exception.getClass().getName(), exception instanceof BillingExceptionBase ? ((BillingExceptionBase) exception).getCode() : null, exception.getLocalizedMessage(), exception.getCause() == null ? null : exception.getCause().getClass().getName(), exception.getCause() == null ? null : exception.getCause().getLocalizedMessage(), !withStackTrace ? ImmutableList.<StackTraceElementJson>of() : Lists.<StackTraceElement, StackTraceElementJson>transform(ImmutableList.<StackTraceElement>copyOf(exception.getStackTrace()), new Function<StackTraceElement, StackTraceElementJson>() { @Override public StackTraceElementJson apply(final StackTraceElement input) { return new StackTraceElementJson(input.getClassName(), input.getFileName(), input.getLineNumber(), input.getMethodName(), input.isNativeMethod()); } })); }
public SubscriptionApiException(final BillingExceptionBase e) { super(e, e.getCode(), e.getMessage()); }
public EntitlementApiException(final BillingExceptionBase e) { super(e, e.getCode(), e.getMessage()); }
public ExceptionResponse(final Exception exception, final boolean withStackTrace) { this(exception.getClass().getName(), exception instanceof BillingExceptionBase ? ((BillingExceptionBase) exception).getCode() : null, exception.getLocalizedMessage(), exception.getCause() == null ? null : exception.getCause().getClass().getName(), exception.getCause() == null ? null : exception.getCause().getLocalizedMessage(), !withStackTrace ? ImmutableList.<StackTraceElementJson>of() : Lists.<StackTraceElement, StackTraceElementJson>transform(ImmutableList.<StackTraceElement>copyOf(exception.getStackTrace()), input -> new StackTraceElementJson(input.getClassName(), input.getFileName(), input.getLineNumber(), input.getMethodName(), input.isNativeMethod()))); }