All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.elide.jsonapi.JsonApiErrorMapper Maven / Gradle / Ivy

There is a newer version: 7.1.4
Show newest version
/*
 * Copyright 2023, the original author or authors.
 * Licensed under the Apache License, Version 2.0
 * See LICENSE file in project root for terms.
 */
package com.yahoo.elide.jsonapi;

import com.yahoo.elide.ElideError;
import com.yahoo.elide.jsonapi.models.JsonApiError;

/**
 * Maps {@link ElideError} to {@link JsonApiError}.
 */
public interface JsonApiErrorMapper {
    /**
     * Maps {@link ElideError} to {@link JsonApiError}.
     *
     * @param error the {@link ElideError} to map
     * @return the mapped {@link JsonApiError}
     */
    JsonApiError toJsonApiError(ElideError error);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy