package org.octopus.internal.common.exceptions

import org.octopus.internal.common.enums.EBusinessException

class OctopusPlanningException(val ex: EBusinessException, override val message: String) : Exception() {

    companion object {
        fun create(exc: EBusinessException, vararg args: Any): OctopusPlanningException {
            return OctopusPlanningException(exc, exc.msg.format(*args))
        }
    }

}