func (et ErrorType) String() string {
	return fmt.Sprintf("%s %s", et.code, et.name)
}
String representation of an error type.

For example:

"NOT_FOUND MyApplication:MissingData"
package errors
import (
	"fmt"
	"regexp"
	"strings"
)
var (
	DefaultUnauthorized          = ErrorType{Unauthorized, errorNameUnauthorized}
	DefaultPermissionDenied      = ErrorType{PermissionDenied, errorNamePermissionDenied}
	DefaultInvalidArgument       = ErrorType{InvalidArgument, errorNameInvalidArgument}
	DefaultNotFound              = ErrorType{NotFound, errorNameNotFound}
	DefaultConflict              = ErrorType{Conflict, errorNameConflict}
	DefaultRequestEntityTooLarge = ErrorType{RequestEntityTooLarge, errorNameRequestEntityTooLarge}
	DefaultFailedPrecondition    = ErrorType{FailedPrecondition, errorNameFailedPrecondition}
	DefaultInternal              = ErrorType{Internal, errorNameInternal}
	DefaultTimeout               = ErrorType{Timeout, errorNameTimeout}
)
type ErrorType struct {
	code ErrorCode
	name string
}
var (
	_ fmt.Stringer = ErrorType{}
)
func MustErrorType(code ErrorCode, name string) ErrorType {
	errorType, err := NewErrorType(code, name)
	if err != nil {
		panic(err)
	}
	return errorType
}
func NewErrorType(code ErrorCode, name string) (ErrorType, error) {
	if err := verifyErrorNameString(name); err != nil {
		return ErrorType{}, err
	}
	if err := verifyErrorCodeErrorNameCombination(code, name); err != nil {
		return ErrorType{}, err
	}
	return ErrorType{
		code: code,
		name: name,
	}, nil
}