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

com.github.commons.utils.exception.GlobalException Maven / Gradle / Ivy

There is a newer version: 1.2.6
Show newest version
package com.github.commons.utils.exception;

import com.github.commons.utils.result.CodeMsg;

public class GlobalException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private CodeMsg cm;

    private GlobalException(CodeMsg cm) {
        super(cm.toString());
        this.cm = cm;
    }

    public CodeMsg getCm() {
        return cm;
    }

    public static GlobalException error(CodeMsg codeMsg){
        return new GlobalException(codeMsg);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy