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

com.github.nagyesta.lowkeyvault.model.common.ErrorModel Maven / Gradle / Ivy

There is a newer version: 2.5.81
Show newest version
package com.github.nagyesta.lowkeyvault.model.common;

import com.fasterxml.jackson.annotation.JsonProperty;

public record ErrorModel(@JsonProperty("error") ErrorMessage error) {
    public ErrorModel(final ErrorMessage error) {
        this.error = error;
    }

    public static ErrorModel fromException(final Exception e) {
        return new ErrorModel(ErrorMessage.fromException(e));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy