forked from platformio/platformio-core
Nominate some exceptions to UserSideException
This commit is contained in:
@ -177,7 +177,7 @@ class NotGlobalLibDir(UserSideException):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class InvalidLibConfURL(PlatformioException):
|
class InvalidLibConfURL(UserSideException):
|
||||||
|
|
||||||
MESSAGE = "Invalid library config URL '{0}'"
|
MESSAGE = "Invalid library config URL '{0}'"
|
||||||
|
|
||||||
@ -242,12 +242,12 @@ class BuildScriptNotFound(PlatformioException):
|
|||||||
MESSAGE = "Invalid path '{0}' to build script"
|
MESSAGE = "Invalid path '{0}' to build script"
|
||||||
|
|
||||||
|
|
||||||
class InvalidSettingName(PlatformioException):
|
class InvalidSettingName(UserSideException):
|
||||||
|
|
||||||
MESSAGE = "Invalid setting with the name '{0}'"
|
MESSAGE = "Invalid setting with the name '{0}'"
|
||||||
|
|
||||||
|
|
||||||
class InvalidSettingValue(PlatformioException):
|
class InvalidSettingValue(UserSideException):
|
||||||
|
|
||||||
MESSAGE = "Invalid value '{0}' for the setting '{1}'"
|
MESSAGE = "Invalid value '{0}' for the setting '{1}'"
|
||||||
|
|
||||||
@ -257,7 +257,7 @@ class InvalidJSONFile(PlatformioException):
|
|||||||
MESSAGE = "Could not load broken JSON: {0}"
|
MESSAGE = "Could not load broken JSON: {0}"
|
||||||
|
|
||||||
|
|
||||||
class CIBuildEnvsEmpty(PlatformioException):
|
class CIBuildEnvsEmpty(UserSideException):
|
||||||
|
|
||||||
MESSAGE = (
|
MESSAGE = (
|
||||||
"Can't find PlatformIO build environments.\n"
|
"Can't find PlatformIO build environments.\n"
|
||||||
@ -295,7 +295,7 @@ class CygwinEnvDetected(PlatformioException):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class TestDirNotExists(PlatformioException):
|
class TestDirNotExists(UserSideException):
|
||||||
|
|
||||||
MESSAGE = (
|
MESSAGE = (
|
||||||
"A test folder '{0}' does not exist.\nPlease create 'test' "
|
"A test folder '{0}' does not exist.\nPlease create 'test' "
|
||||||
|
Reference in New Issue
Block a user