Add isGeneric check for action errors
This commit is contained in:
@@ -218,8 +218,8 @@ func (e *accessControlError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *accessControlError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*accessControlError)
|
||||
func (e *accessControlError) Is(err error) bool {
|
||||
t, ok := err.(*accessControlError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -227,6 +227,14 @@ func (e *accessControlError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *accessControlError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps accessControlError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -451,8 +451,8 @@ func (e *attachmentError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *attachmentError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*attachmentError)
|
||||
func (e *attachmentError) Is(err error) bool {
|
||||
t, ok := err.(*attachmentError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -460,6 +460,14 @@ func (e *attachmentError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *attachmentError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps attachmentError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -338,8 +338,8 @@ func (e *chartError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *chartError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*chartError)
|
||||
func (e *chartError) Is(err error) bool {
|
||||
t, ok := err.(*chartError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -347,6 +347,14 @@ func (e *chartError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *chartError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps chartError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -347,8 +347,8 @@ func (e *moduleError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *moduleError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*moduleError)
|
||||
func (e *moduleError) Is(err error) bool {
|
||||
t, ok := err.(*moduleError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -356,6 +356,14 @@ func (e *moduleError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *moduleError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps moduleError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -302,8 +302,8 @@ func (e *namespaceError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *namespaceError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*namespaceError)
|
||||
func (e *namespaceError) Is(err error) bool {
|
||||
t, ok := err.(*namespaceError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -311,6 +311,14 @@ func (e *namespaceError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *namespaceError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps namespaceError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -283,8 +283,8 @@ func (e *notificationError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *notificationError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*notificationError)
|
||||
func (e *notificationError) Is(err error) bool {
|
||||
t, ok := err.(*notificationError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -292,6 +292,14 @@ func (e *notificationError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *notificationError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps notificationError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -359,8 +359,8 @@ func (e *pageError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *pageError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*pageError)
|
||||
func (e *pageError) Is(err error) bool {
|
||||
t, ok := err.(*pageError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -368,6 +368,14 @@ func (e *pageError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *pageError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps pageError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -443,8 +443,8 @@ func (e *recordError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *recordError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*recordError)
|
||||
func (e *recordError) Is(err error) bool {
|
||||
t, ok := err.(*recordError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -452,6 +452,14 @@ func (e *recordError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *recordError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps recordError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -218,8 +218,8 @@ func (e *accessControlError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *accessControlError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*accessControlError)
|
||||
func (e *accessControlError) Is(err error) bool {
|
||||
t, ok := err.(*accessControlError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -227,6 +227,14 @@ func (e *accessControlError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *accessControlError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps accessControlError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -344,8 +344,8 @@ func (e *attachmentError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *attachmentError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*attachmentError)
|
||||
func (e *attachmentError) Is(err error) bool {
|
||||
t, ok := err.(*attachmentError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -353,6 +353,14 @@ func (e *attachmentError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *attachmentError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps attachmentError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -324,8 +324,8 @@ func (e *channelError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *channelError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*channelError)
|
||||
func (e *channelError) Is(err error) bool {
|
||||
t, ok := err.(*channelError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -333,6 +333,14 @@ func (e *channelError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *channelError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps channelError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -255,8 +255,8 @@ func (e *{{ $.Service }}Error) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *{{ $.Service }}Error) Is(Resource error) bool {
|
||||
t, ok := Resource.(*{{ $.Service }}Error)
|
||||
func (e *{{ $.Service }}Error) Is(err error) bool {
|
||||
t, ok := err.(*{{ $.Service }}Error)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -264,6 +264,14 @@ func (e *{{ $.Service }}Error) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *{{ $.Service }}Error) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps {{ $.Service }}Error around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -218,8 +218,8 @@ func (e *accessControlError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *accessControlError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*accessControlError)
|
||||
func (e *accessControlError) Is(err error) bool {
|
||||
t, ok := err.(*accessControlError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -227,6 +227,14 @@ func (e *accessControlError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *accessControlError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps accessControlError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -308,8 +308,8 @@ func (e *applicationError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *applicationError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*applicationError)
|
||||
func (e *applicationError) Is(err error) bool {
|
||||
t, ok := err.(*applicationError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -317,6 +317,14 @@ func (e *applicationError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *applicationError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps applicationError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -316,8 +316,8 @@ func (e *attachmentError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *attachmentError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*attachmentError)
|
||||
func (e *attachmentError) Is(err error) bool {
|
||||
t, ok := err.(*attachmentError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -325,6 +325,14 @@ func (e *attachmentError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *attachmentError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps attachmentError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -318,8 +318,8 @@ func (e *authError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *authError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*authError)
|
||||
func (e *authError) Is(err error) bool {
|
||||
t, ok := err.(*authError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -327,6 +327,14 @@ func (e *authError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *authError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps authError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -347,8 +347,8 @@ func (e *reminderError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *reminderError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*reminderError)
|
||||
func (e *reminderError) Is(err error) bool {
|
||||
t, ok := err.(*reminderError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -356,6 +356,14 @@ func (e *reminderError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *reminderError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps reminderError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -431,8 +431,8 @@ func (e *roleError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *roleError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*roleError)
|
||||
func (e *roleError) Is(err error) bool {
|
||||
t, ok := err.(*roleError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -440,6 +440,14 @@ func (e *roleError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *roleError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps roleError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -283,8 +283,8 @@ func (e *sinkError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *sinkError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*sinkError)
|
||||
func (e *sinkError) Is(err error) bool {
|
||||
t, ok := err.(*sinkError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -292,6 +292,14 @@ func (e *sinkError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *sinkError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps sinkError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -171,8 +171,8 @@ func (e *statisticsError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *statisticsError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*statisticsError)
|
||||
func (e *statisticsError) Is(err error) bool {
|
||||
t, ok := err.(*statisticsError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -180,6 +180,14 @@ func (e *statisticsError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *statisticsError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps statisticsError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
@@ -389,8 +389,8 @@ func (e *userError) Error() string {
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *userError) Is(Resource error) bool {
|
||||
t, ok := Resource.(*userError)
|
||||
func (e *userError) Is(err error) bool {
|
||||
t, ok := err.(*userError)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
@@ -398,6 +398,14 @@ func (e *userError) Is(Resource error) bool {
|
||||
return t.resource == e.resource && t.error == e.error
|
||||
}
|
||||
|
||||
// Is fn for error equality check
|
||||
//
|
||||
// This function is auto-generated.
|
||||
//
|
||||
func (e *userError) IsGeneric() bool {
|
||||
return e.error == "generic"
|
||||
}
|
||||
|
||||
// Wrap wraps userError around another error
|
||||
//
|
||||
// This function is auto-generated.
|
||||
|
||||
Reference in New Issue
Block a user