func NewBasicError(err error) *BasicError {
	if err == nil {
		return nil
	}
	return &BasicError{err.Error()}
}
NewBasicError is used to create a BasicError.

err is allowed to be nil.
package plugin
type BasicError struct {
	Message string
}