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

com.visenze.visearch.internal.InternalViSearchException Maven / Gradle / Ivy

There is a newer version: 1.14.5
Show newest version
package com.visenze.visearch.internal;

import com.visenze.visearch.ResponseMessages;

public class InternalViSearchException extends RuntimeException {

    private String serverRawResponse;

    public InternalViSearchException(String message, String serverRawResponse) {
        super(message);
        this.serverRawResponse = serverRawResponse;
    }

    public InternalViSearchException(ResponseMessages responseMessages) {
        super(responseMessages.getMessage());
    }

    public InternalViSearchException(ResponseMessages responseMessages, Throwable cause) {
        super(responseMessages.getMessage(), cause);
    }

    public InternalViSearchException(ResponseMessages responseMessages, String serverRawResponse) {
        super(responseMessages.getMessage());
        this.serverRawResponse = serverRawResponse;
    }

    public InternalViSearchException(ResponseMessages responseMessages, Throwable cause, String serverRawResponse) {
        super(responseMessages.getMessage(), cause);
        this.serverRawResponse = serverRawResponse;
    }

    public String getServerRawResponse() {
        return serverRawResponse;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy