|
| 1 | +/* |
| 2 | +Copyright 2023 The Dapr Authors |
| 3 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +you may not use this file except in compliance with the License. |
| 5 | +You may obtain a copy of the License at |
| 6 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | +Unless required by applicable law or agreed to in writing, software |
| 8 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 9 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 10 | +See the License for the specific language governing permissions and |
| 11 | +limitations under the License. |
| 12 | +*/ |
| 13 | + |
| 14 | +package errors |
| 15 | + |
| 16 | +const ( |
| 17 | + // Generic |
| 18 | + CodeNotFound = "NOT_FOUND" |
| 19 | + CodeNotConfigured = "NOT_CONFIGURED" |
| 20 | + CodeNotSupported = "NOT_SUPPORTED" |
| 21 | + CodeIllegalKey = "ILLEGAL_KEY" |
| 22 | + |
| 23 | + // Components |
| 24 | + CodePrefixStateStore = "DAPR_STATE_" |
| 25 | + CodePrefixPubSub = "DAPR_PUBSUB_" |
| 26 | + CodePrefixBindings = "DAPR_BINDING_" |
| 27 | + CodePrefixSecretStore = "DAPR_SECRET_" |
| 28 | + CodePrefixConfigurationStore = "DAPR_CONFIGURATION_" |
| 29 | + CodePrefixLock = "DAPR_LOCK_" |
| 30 | + CodePrefixNameResolution = "DAPR_NAME_RESOLUTION_" |
| 31 | + CodePrefixMiddleware = "DAPR_MIDDLEWARE_" |
| 32 | + |
| 33 | + // State |
| 34 | + CodePostfixGetStateFailed = "GET_STATE_FAILED" |
| 35 | + CodePostfixTooManyTransactions = "TOO_MANY_TRANSACTIONS" |
| 36 | + CodePostfixQueryFailed = "QUERY_FAILED" |
| 37 | +) |
0 commit comments