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

com.rivers.core.util.ExceptionUtil Maven / Gradle / Ivy

There is a newer version: 2.0.6
Show newest version
package com.rivers.core.util;

import com.rivers.core.exception.BusinessException;
import org.springframework.util.Assert;

public class ExceptionUtil extends Assert {

    public static void throwBusinessException(String errorCode) {
        throw new BusinessException(errorCode);
    }

    public static void throwBusinessException(String errorCode, String msg) {
        throw new BusinessException(errorCode, msg);
    }

    public static void throwBusinessException(String errorCode, Throwable e) {
        throw new BusinessException(errorCode, e);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy