org.springframework.web.multipart.ExtensionUnsupportedException Maven / Gradle / Ivy
package org.springframework.web.multipart;
@SuppressWarnings("serial")
public class ExtensionUnsupportedException extends MultipartException {
private final String extension;
public ExtensionUnsupportedException(String extension) {
this(extension, null);
}
public ExtensionUnsupportedException(String extension, Throwable cause) {
super("File extension of " + extension + " unsupported ", cause);
this.extension = extension;
}
public String getExtension() {
return extension;
}
}