code: func GetErrorNum(err error) (errorNum int, ok bool) {
  	e, ok := err.(arangoError)
  	if !ok || e.errorNum == 0 {
  		return 0, false
  	}
  	return e.errorNum, true
  }
docs: // GetErrorNum returns the database error num encapsulated in the error.