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

com.nike.riposte.server.error.exception.PathParameterMatchingException Maven / Gradle / Ivy

There is a newer version: 0.20.0
Show newest version
package com.nike.riposte.server.error.exception;

/**
 * Thrown when the server tries to decode path parameters for a request, but the request path doesn't match the path
 * template.
 *
 * @author Nic Munroe
 */
public class PathParameterMatchingException extends RuntimeException {

    public final String pathTemplate;
    public final String nonMatchingUriPath;

    public PathParameterMatchingException(String message, String pathTemplate, String nonMatchingUriPath) {
        super(message);

        this.pathTemplate = pathTemplate;
        this.nonMatchingUriPath = nonMatchingUriPath;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy