func (dom *DOM) recoverError(r interface{}) error {
	switch v := r.(type) {
	case error:
		return v
	case string:
		return errors.New(v)
	default:
		panic([]interface{}{"unknown panic type", v, r})
	}
}
// RecoverError converts the recovery interface into a useful error.
// Panics if the interface is not an error or a string.
RecoverError converts the recovery interface into a useful error.
Panics if the interface is not an error or a string.
// RecoverError converts the recovery interface into a useful error . // Panics if the interface is not an error or a string .
func (dom *DOM) recoverError(r interface{}) error {
	switch v := r.(type) {
	case error:
		return v
	case string:
		return errors.New(v)
	default:
		panic([]interface{}{"unknown panic type", v, r})
	}
}
func ( dom * DOM ) recoverError ( r interface { } ) error { switch v := r . ( type ) { case error : return v case string : return errors . New ( v ) default : panic ( [ ] interface { } { " " , v , r } ) } }
RecoverError converts the recovery interface into a useful error.
RecoverError converts the recovery interface into a useful error .