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

com.hashicorp.nomad.javasdk.ResponseHeaderException Maven / Gradle / Ivy

There is a newer version: 0.11.3.0
Show newest version
package com.hashicorp.nomad.javasdk;

import javax.annotation.Nullable;

/**
 * Thrown when there is a problem with a response header.
 */
public class ResponseHeaderException extends RuntimeException {
    ResponseHeaderException(String message, @Nullable Throwable cause) {
        super(message, cause);
    }

    static ResponseHeaderException parsing(String name, String value, Throwable cause) {
        return new ResponseHeaderException(
                "Error parsing " + name + " header with value \"" + value + "\":" + cause,
                cause);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy