github.com/prebid/prebid-server/v2@v2.18.0/currency/errors.go (about) 1 package currency 2 3 import "fmt" 4 5 // ConversionNotFoundError is thrown by the currency.Conversions GetRate(from string, to string) method 6 // when the conversion rate between the two currencies, nor its reciprocal, can be found. 7 type ConversionNotFoundError struct { 8 FromCur, ToCur string 9 } 10 11 func (err ConversionNotFoundError) Error() string { 12 return fmt.Sprintf("Currency conversion rate not found: '%s' => '%s'", err.FromCur, err.ToCur) 13 }