Net::RDAP::Error(3)

πŸ“¦
version 0.43 Β· 3 versions
, in fedora 44

πŸ’– Net::RDAP::Error πŸ’–

okay bestie, gather round, because we're talking about Net::RDAP::Error β€” the little module that represents an RDAP error. yes, the error module. it's giving "something went wrong and we're gonna tell you about it" and honestly? iconic.


✨ DESCRIPTION ✨

Net::RDAP::Object::Error represents an error. no cap. and this error could be one of two whole vibes:

  • an error that got returned by an RDAP server, or
  • an error that got generated internally (aka we made it ourselves, it's homegrown, it's artisanal)

also, Net::RDAP::Object::Error inherits from Net::RDAP::Object, which means it has access to all that module's methods. yes. all of them. the whole inheritance bag. slay. πŸ’…


πŸŽ€ METHODS πŸŽ€

  • $code = $error->errorCode; β€” hands you back the error code number, which corresponds to the HTTP response code. now listen, here's the tea on internally generated errors: they're usually 400 if the arguments passed to Net::RDAP are invalid in some way, and 500 if the response from the server is invalid or cannot be reached. so like, 400 = "bestie what did you even type", 500 = "the server said no and also maybe doesn't exist". 😭
  • $title = $error->title; β€” returns a string containing a short summary of the error. the lil headline. the tl;dr. the error's whole personality in one line. ✨
  • @description = $error->description; β€” returns a (potentially empty) array of lines of descriptive text. yes, an array. and yes, it can be empty β€” sometimes the error simply has nothing more to say and honestly? respect. πŸ™ˆ
heads up bestie: @description is an array, not a scalar. don't come for me, that's just what the manpage says. 🫢

Copyright 2018-2023 CentralNic Ltd, 2024-2026 Gavin Brown. for licensing information, please see the "LICENSE" file in the Net::RDAP distribution. (yes, actual quotes around LICENSE, we're being fancy πŸ’œ)


and that's the whole page, bestie!! 🌸 this one's from perl v5.42.2, dated 2026-06-17, and it lives its best life as Net::RDAP::Error(3) in the User Contributed Perl Documentation section. mwah. πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from