src/main/java/com/yj/oa/common/exception/file/FileNameLengthException.java

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.yj.oa.common.exception.file;

import org.apache.commons.fileupload.FileUploadException;

/**
 * @author 永健
 * 文件名超长异常
 */
public class FileNameLengthException extends FileUploadException{

    private String msg;
    //文件名
    private String fileName;
    //文件长度
    private int length;
    //最大文件长度
    private int limitLength;

    public FileNameLengthException(String msg,String filename, int length, int maxLength)
    {
        super("file name : [" + filename + "], length : [" + length + "], max length : [" + maxLength + "]");

        this.msg=msg;
        this.fileName=filename;
        this.length=length;
        this.limitLength=maxLength;
    }

    public String getMsg()
    {
        return msg;
    }

    public void setMsg(String msg)
    {
        this.msg = msg;
    }

    public String getFileName()
    {
        return fileName;
    }

    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public int getLength()
    {
        return length;
    }

    public void setLength(int length)
    {
        this.length = length;
    }

    public int getLimitLength()
    {
后面还有 8 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。