Travel...ception(3pm)

πŸ“¦
version 2.24 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ Travel::Routing::DE::EFA::Exception β€” the exceptions manual πŸ’–

okay bestie, so this is the manpage for Travel::Routing::DE::EFA::Exception from the Travel::Routing::DE::EFA crew, and it's literally just the ✨exceptions✨ page. if your code is crying, this is the page that tells you why 🫢


🌸 DESCRIPTION 🌸

so here's the tea: every single exception thrown by Travel::Routing::DE::EFA is a Travel::Routing::DE::EFA::Exception object, and they're all created by Exception::Class(3pm). no cap, all of them. πŸ’…

and if you wanna know what methods they all share? that's a Exception::Class::Base(3pm) situation, so go peek at that page for the common stuff. πŸ‘‘


πŸ¦‹ LIST OF EXCEPTIONS πŸ¦‹

here's the roster, main character by main character:

πŸ’œ Travel::Routing::DE::EFA::Exception::Setup

bestie, this one means an argument to new had an invalid format. like, the vibe was off. 😭

extra methods she brings to the party:

  • $exception->option β€” the option where the error happened. the exact spot. πŸ“
  • $exception->have β€” the argument we actually got. the audacity.
  • $exception->want β€” what kind of argument we want. the dream. ✨

🌈 Travel::Routing::DE::EFA::Exception::Net

the HTTP request to the efa interface failed. πŸ’€ and she comes with receipts: there's an HTTP::Response(3pm) object describing the error sitting right there in http_response.

πŸ“ Travel::Routing::DE::EFA::Exception::NoData

we got no parsable data from the EFA service. empty. nothing. ghosted. πŸ™ˆ

🧚 Travel::Routing::DE::EFA::Exception::Ambiguous

our request contained ambiguous data. like, pick a lane?? πŸš—

  • post_key contains the relevant POST key
  • post_value is the corresponding input value
  • possibilities is a pipe-separated string of acceptable values reported by the EFA service β€” so basically the EFA service handed you a list of options and said "choose" πŸ‘‘

⭐ Travel::Routing::DE::EFA::Exception::NoConnections

the EFA service found no connections for our request. no routes, no journeys, nothing. it's giving empty. 😭


πŸ‘‘ SEE ALSO πŸ‘‘


that's the whole page bestie, slay, you're now fluent in EFA exceptions πŸŽ€

this page was brought to you by perl v5.36.0, dated 2023-11-27 β€” mwah, kisses, go write some error handling πŸ’…

πŸ“¦ where this page comes from