001
002package com.commercetools.api.client;
003
004import io.vrap.rmf.base.client.utils.Generated;
005
006/**
007 * ErrorableTrait
008 * @param <T> type of extending interface
009 */
010@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
011public interface ErrorableTrait<T extends ErrorableTrait<T>> {
012
013    default ErrorableTrait<T> asErrorableTrait() {
014        return this;
015    }
016
017    @SuppressWarnings("unchecked")
018    default T asErrorableTraitToBaseType() {
019        return (T) this;
020    }
021
022}