---
name: "SRU::Response::Diagnostic"
section: "3pm"
platform: "linux"
package: "libsru-perl"
version: "1.01-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SRU::Response::Diagnostic"
---

# SRU::Response::Diagnostic(3pm)

An SRU diagnostic message

## NAME

SRU::Response::Diagnostic - An SRU diagnostic message

## SYNOPSIS

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

## DESCRIPTION

You probably won't need to use this class since it used interally to store diagnostic messages.

## METHOD

### new()

Pass in uri, details and message attributes as needed. You'll probably find using **newFromCode()** easier to work with.

### newFromCode()

Create a SRU::Response::Diagnostic object from a code. For a complete list of the codes see the SRW/SRU documentation.

### uri()

### details()

### message()

### asXML()

## COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Ed Summers.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
