github.com/hyperledger/aries-framework-go@v0.3.2/pkg/didcomm/common/service/errors.go (about)

     1  /*
     2  Copyright SecureKey Technologies Inc. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package service
     8  
     9  // Service errors.
    10  const (
    11  	ErrChannelRegistered = serviceError("channel is already registered for the action event")
    12  	ErrNilChannel        = serviceError("cannot pass nil channel")
    13  	ErrInvalidChannel    = serviceError("invalid channel passed to unregister the action event")
    14  	ErrThreadIDNotFound  = serviceError("threadID not found")
    15  	ErrInvalidMessage    = serviceError("invalid message")
    16  	ErrNilMessage        = serviceError("message is nil")
    17  )
    18  
    19  // serviceError defines service error.
    20  type serviceError string
    21  
    22  // Error satisfies build-in error interface.
    23  func (e serviceError) Error() string { return string(e) }