forked from chen-Leo/bacnet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
errorcode_string.go
169 lines (163 loc) · 8.01 KB
/
errorcode_string.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
// Code generated by "stringer -type=ErrorCode"; DO NOT EDIT.
package bacnet
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[Other-0]
_ = x[DeviceBusy-3]
_ = x[ConfigurationInProgress-2]
_ = x[OperationalProblem-25]
_ = x[DynamicCreationNotSupported-4]
_ = x[NoObjectsOfSpecifiedType-17]
_ = x[ObjectDeletionNotPermitted-23]
_ = x[ObjectIdentifierAlreadyExists-24]
_ = x[ReadAccessDenied-27]
_ = x[UnknownObject-31]
_ = x[UnsupportedObjectType-36]
_ = x[CharacterSetNotSupported-41]
_ = x[DatatypeNotSupported-47]
_ = x[InconsistentSelectionCriterion-8]
_ = x[InvalidArrayIndex-42]
_ = x[InvalidDataType-9]
_ = x[NotCovProperty-44]
_ = x[OptionalFunctionalityNotSupported-45]
_ = x[PropertyIsNotAnArray-50]
_ = x[UnknownProperty-32]
_ = x[ValueOutOfRange-37]
_ = x[WriteAccessDenied-40]
_ = x[NoSpaceForObject-18]
_ = x[NoSpaceToAddListElement-19]
_ = x[NoSpaceToWriteProperty-20]
_ = x[AuthenticationFailed-1]
_ = x[IncompatibleSecurityLevels-6]
_ = x[InvalidOperatorName-12]
_ = x[KeyGenerationError-15]
_ = x[PasswordFailure-26]
_ = x[SecurityNotSupported-28]
_ = x[Timeout-30]
_ = x[CovSubscriptionFailed-43]
_ = x[DuplicateName-48]
_ = x[DuplicateObjectID-49]
_ = x[FileAccessDenied-5]
_ = x[InconsistentParameters-7]
_ = x[InvalidConfigurationData-46]
_ = x[InvalidFileAccessMethod-10]
_ = x[InvalidFileStartPosition-11]
_ = x[InvalidParameterDataType-13]
_ = x[InvalidTimeStamp-14]
_ = x[MissingRequiredParameter-16]
_ = x[PropertyIsNotAList-22]
_ = x[ServiceRequestDenied-29]
_ = x[UnknownVtClass-34]
_ = x[UnknownVtSession-35]
_ = x[NoVtSessionsAvailable-21]
_ = x[VtSessionAlreadyClosed-38]
_ = x[VtSessionTerminationFailure-39]
_ = x[AbortBufferOverflow-51]
_ = x[AbortInvalidApduInThisState-52]
_ = x[AbortPreemptedByHigherPriorityTask-53]
_ = x[AbortSegmentationNotSupported-54]
_ = x[AbortProprietary-55]
_ = x[AbortOther-56]
_ = x[InvalidTag-57]
_ = x[NetworkDown-58]
_ = x[RejectBufferOverflow-59]
_ = x[RejectInconsistentParameters-60]
_ = x[RejectInvalidParameterDataType-61]
_ = x[RejectInvalidTag-62]
_ = x[RejectMissingRequiredParameter-63]
_ = x[RejectParameterOutOfRange-64]
_ = x[RejectTooManyArguments-65]
_ = x[RejectUndefinedEnumeration-66]
_ = x[RejectUnrecognizedService-67]
_ = x[RejectProprietary-68]
_ = x[RejectOther-69]
_ = x[UnknownDevice-70]
_ = x[UnknownRoute-71]
_ = x[ValueNotInitialized-72]
_ = x[InvalidEventState-73]
_ = x[NoAlarmConfigured-74]
_ = x[LogBufferFull-75]
_ = x[LoggedValuePurged-76]
_ = x[NoPropertySpecified-77]
_ = x[NotConfiguredForTriggeredLogging-78]
_ = x[UnknownSubscription-79]
_ = x[ParameterOutOfRange-80]
_ = x[ListElementNotFound-81]
_ = x[Busy-82]
_ = x[CommunicationDisabled-83]
_ = x[Success-84]
_ = x[AccessDenied-85]
_ = x[BadDestinationAddress-86]
_ = x[BadDestinationDeviceID-87]
_ = x[BadSignature-88]
_ = x[BadSourceAddress-89]
_ = x[BadTimestamp-90]
_ = x[CannotUseKey-91]
_ = x[CannotVerifyMessageID-92]
_ = x[CorrectKeyRevision-93]
_ = x[DestinationDeviceIDRequired-94]
_ = x[DuplicateMessage-95]
_ = x[EncryptionNotConfigured-96]
_ = x[EncryptionRequired-97]
_ = x[IncorrectKey-98]
_ = x[InvalidKeyData-99]
_ = x[KeyUpdateInProgress-100]
_ = x[MalformedMessage-101]
_ = x[NotKeyServer-102]
_ = x[SecurityNotConfigured-103]
_ = x[SourceSecurityRequired-104]
_ = x[TooManyKeys-105]
_ = x[UnknownAuthenticationType-106]
_ = x[UnknownKey-107]
_ = x[UnknownKeyRevision-108]
_ = x[UnknownSourceMessage-109]
_ = x[NotRouterToDnet-110]
_ = x[RouterBusy-111]
_ = x[UnknownNetworkMessage-112]
_ = x[MessageTooLong-113]
_ = x[SecurityErrorCode-114]
_ = x[AddressingError-115]
_ = x[WriteBdtFailed-116]
_ = x[ReadBdtFailed-117]
_ = x[RegisterForeignDeviceFailed-118]
_ = x[ReadFdtFailed-119]
_ = x[DeleteFdtEntryFailed-120]
_ = x[DistributeBroadcastFailed-121]
_ = x[UnknownFileSize-122]
_ = x[AbortApduTooLong-123]
_ = x[AbortApplicationExceededReplyTime-124]
_ = x[AbortOutOfResources-125]
_ = x[AbortTsmTimeout-126]
_ = x[AbortWindowSizeOutOfRange-127]
_ = x[FileFull-128]
_ = x[InconsistentConfiguration-129]
_ = x[InconsistentObjectType-130]
_ = x[InternalError-131]
_ = x[NotConfigured-132]
_ = x[OutOfMemory-133]
_ = x[ValueTooLong-134]
_ = x[AbortInsufficientSecurity-135]
_ = x[AbortSecurityError-136]
}
const (
_ErrorCode_name_0 = "OtherAuthenticationFailedConfigurationInProgressDeviceBusyDynamicCreationNotSupportedFileAccessDeniedIncompatibleSecurityLevelsInconsistentParametersInconsistentSelectionCriterionInvalidDataTypeInvalidFileAccessMethodInvalidFileStartPositionInvalidOperatorNameInvalidParameterDataTypeInvalidTimeStampKeyGenerationErrorMissingRequiredParameterNoObjectsOfSpecifiedTypeNoSpaceForObjectNoSpaceToAddListElementNoSpaceToWritePropertyNoVtSessionsAvailablePropertyIsNotAListObjectDeletionNotPermittedObjectIdentifierAlreadyExistsOperationalProblemPasswordFailureReadAccessDeniedSecurityNotSupportedServiceRequestDeniedTimeoutUnknownObjectUnknownProperty"
_ErrorCode_name_1 = "UnknownVtClassUnknownVtSessionUnsupportedObjectTypeValueOutOfRangeVtSessionAlreadyClosedVtSessionTerminationFailureWriteAccessDeniedCharacterSetNotSupportedInvalidArrayIndexCovSubscriptionFailedNotCovPropertyOptionalFunctionalityNotSupportedInvalidConfigurationDataDatatypeNotSupportedDuplicateNameDuplicateObjectIDPropertyIsNotAnArrayAbortBufferOverflowAbortInvalidApduInThisStateAbortPreemptedByHigherPriorityTaskAbortSegmentationNotSupportedAbortProprietaryAbortOtherInvalidTagNetworkDownRejectBufferOverflowRejectInconsistentParametersRejectInvalidParameterDataTypeRejectInvalidTagRejectMissingRequiredParameterRejectParameterOutOfRangeRejectTooManyArgumentsRejectUndefinedEnumerationRejectUnrecognizedServiceRejectProprietaryRejectOtherUnknownDeviceUnknownRouteValueNotInitializedInvalidEventStateNoAlarmConfiguredLogBufferFullLoggedValuePurgedNoPropertySpecifiedNotConfiguredForTriggeredLoggingUnknownSubscriptionParameterOutOfRangeListElementNotFoundBusyCommunicationDisabledSuccessAccessDeniedBadDestinationAddressBadDestinationDeviceIDBadSignatureBadSourceAddressBadTimestampCannotUseKeyCannotVerifyMessageIDCorrectKeyRevisionDestinationDeviceIDRequiredDuplicateMessageEncryptionNotConfiguredEncryptionRequiredIncorrectKeyInvalidKeyDataKeyUpdateInProgressMalformedMessageNotKeyServerSecurityNotConfiguredSourceSecurityRequiredTooManyKeysUnknownAuthenticationTypeUnknownKeyUnknownKeyRevisionUnknownSourceMessageNotRouterToDnetRouterBusyUnknownNetworkMessageMessageTooLongSecurityErrorCodeAddressingErrorWriteBdtFailedReadBdtFailedRegisterForeignDeviceFailedReadFdtFailedDeleteFdtEntryFailedDistributeBroadcastFailedUnknownFileSizeAbortApduTooLongAbortApplicationExceededReplyTimeAbortOutOfResourcesAbortTsmTimeoutAbortWindowSizeOutOfRangeFileFullInconsistentConfigurationInconsistentObjectTypeInternalErrorNotConfiguredOutOfMemoryValueTooLongAbortInsufficientSecurityAbortSecurityError"
)
var (
_ErrorCode_index_0 = [...]uint16{0, 5, 25, 48, 58, 85, 101, 127, 149, 179, 194, 217, 241, 260, 284, 300, 318, 342, 366, 382, 405, 427, 448, 466, 492, 521, 539, 554, 570, 590, 610, 617, 630, 645}
_ErrorCode_index_1 = [...]uint16{0, 14, 30, 51, 66, 88, 115, 132, 156, 173, 194, 208, 241, 265, 285, 298, 315, 335, 354, 381, 415, 444, 460, 470, 480, 491, 511, 539, 569, 585, 615, 640, 662, 688, 713, 730, 741, 754, 766, 785, 802, 819, 832, 849, 868, 900, 919, 938, 957, 961, 982, 989, 1001, 1022, 1044, 1056, 1072, 1084, 1096, 1117, 1135, 1162, 1178, 1201, 1219, 1231, 1245, 1264, 1280, 1292, 1313, 1335, 1346, 1371, 1381, 1399, 1419, 1434, 1444, 1465, 1479, 1496, 1511, 1525, 1538, 1565, 1578, 1598, 1623, 1638, 1654, 1687, 1706, 1721, 1746, 1754, 1779, 1801, 1814, 1827, 1838, 1850, 1875, 1893}
)
func (i ErrorCode) String() string {
switch {
case i <= 32:
return _ErrorCode_name_0[_ErrorCode_index_0[i]:_ErrorCode_index_0[i+1]]
case 34 <= i && i <= 136:
i -= 34
return _ErrorCode_name_1[_ErrorCode_index_1[i]:_ErrorCode_index_1[i+1]]
default:
return "ErrorCode(" + strconv.FormatInt(int64(i), 10) + ")"
}
}