Commit abff3233 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Handled special chars and added some logging

parent a30d0718
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -7,12 +7,15 @@ import org.springframework.web.bind.annotation.ResponseStatus;
public class InvalidURIException extends VoSpaceException {

    public InvalidURIException(String URI, String path) {
        super("InvalidURI. Payload node URI: " + URI + 
                " is not consistent with request path: " + path);
        super("InvalidURI. Payload node URI: " + URI
                + " is not consistent with request path: " + path);
    }

    public InvalidURIException(String URI)
    {
    public InvalidURIException(String URI) {
        super("InvalidURI. URI: " + URI + " is not in a valid format");
    }

    public InvalidURIException(IllegalArgumentException ex) {
        super("InvalidURI. " + ex.getMessage());
    }
}