mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
Improve error codes
This commit is contained in:
parent
8a2c6985a4
commit
3368ed933f
@ -10,7 +10,7 @@ namespace DB
|
|||||||
|
|
||||||
namespace ErrorCodes
|
namespace ErrorCodes
|
||||||
{
|
{
|
||||||
extern const int BAD_ARGUMENTS;
|
extern const int ARGUMENT_OUT_OF_BOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Key>
|
template <typename Key>
|
||||||
@ -59,7 +59,7 @@ public:
|
|||||||
throw Exception(
|
throw Exception(
|
||||||
"The step given in function "
|
"The step given in function "
|
||||||
+ getName() + " should not be zero",
|
+ getName() + " should not be zero",
|
||||||
ErrorCodes::BAD_ARGUMENTS
|
ErrorCodes::ARGUMENT_OUT_OF_BOUND
|
||||||
);
|
);
|
||||||
|
|
||||||
if (end < begin)
|
if (end < begin)
|
||||||
@ -71,7 +71,7 @@ public:
|
|||||||
throw Exception(
|
throw Exception(
|
||||||
"The range given in function "
|
"The range given in function "
|
||||||
+ getName() + " contains too many elements",
|
+ getName() + " contains too many elements",
|
||||||
ErrorCodes::BAD_ARGUMENTS
|
ErrorCodes::ARGUMENT_OUT_OF_BOUND
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user