github.com/newrelic/go-agent@v3.26.0+incompatible/internal/cat/errors.go (about)

     1  // Copyright 2020 New Relic Corporation. All rights reserved.
     2  // SPDX-License-Identifier: Apache-2.0
     3  
     4  package cat
     5  
     6  import (
     7  	"fmt"
     8  )
     9  
    10  type errUnexpectedArraySize struct {
    11  	label    string
    12  	expected int
    13  	actual   int
    14  }
    15  
    16  func (e errUnexpectedArraySize) Error() string {
    17  	return fmt.Sprintf("%s: expected %d; got %d", e.label, e.expected, e.actual)
    18  }