func (d *Definition) Name() string {
	if d == nil {
		return ""
	}
	return d.name
}
Name of the error.
package errors
import (
	"fmt"
	"regexp"
	"github.com/gotnospirit/messageformat"
	"go.thethings.network/lorawan-stack/v3/pkg/i18n"
	"google.golang.org/grpc/codes"
	"google.golang.org/grpc/status"
)
type Definition struct {
	namespace              string
	name                   string
	messageFormat          string
	messageFormatArguments []string
	parsedMessageFormat    *messageformat.MessageFormat
	publicAttributes       []string
	code                   uint32  
	grpcStatus             *status.Status
}
type DefinitionInterface interface {
	error
	fmt.Stringer
	Namespace() string
	Name() string
	FullName() string
	MessageFormat() string
	Code() uint32
}
func (d *Definition) Namespace() string {
	if d == nil {
		return ""
	}
	return d.namespace
}