SRU::R...gnostic(3pm)

πŸ“¦
version 1.01 Β· 2 versions
  • 1.01 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.01 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

SRU::Response::Diagnostic β€” an SRU diagnostic message, bestie πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

my $d = SRU::Response::Diagnostic->new(
    uri     => '',
    details => ''
    message => ''
);
print $d->asXML();

(yes the original really is missing that comma after details => '' β€” not me, I don't make the rules, I just report them 🫢)


🌸 DESCRIPTION 🌸

Okay so real talk: you probably won't need to use this class, because it's used internally to store diagnostic messages. It's giving backstage crew energy β€” doing the work, not seeking the spotlight. πŸ‘‘


πŸŽ€ METHOD πŸŽ€

  • new() β€” pass in the uri, details and message attributes as needed. Ngl tho, you'll probably find newFromCode() easier to work with. Just saying. πŸ™ˆ
  • newFromCode() β€” creates an SRU::Response::Diagnostic object from a code. For a complete list of the codes, see the SRW/SRU documentation. Go read the docs, bestie, they're the moment. πŸ“–βœ¨
  • uri() β€” the uri accessor.
  • details() β€” the details accessor.
  • message() β€” the message accessor.
  • asXML() β€” turns it into XML, iconic behaviour fr fr.

This software is copyright (c) 2013 by Ed Summers. Respect the legend. 🫢

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Free as in, go off, do your thing, slay. 🌈


And that's the whole vibe check, bestie β€” this page came to you courtesy of perl v5.34.0, dated 2022-06-17. Periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from