Signed-off-by: Jason Stephenson <jason@sigio.com>
unless ($type) {
if ($textcode) {
$type = $textcode;
- } else {
- # Because we have to give them something.
- $type = 'Temporary Processing Failure';
}
}
return NCIP::Problem->new(
{
- ProblemType => $type,
- ProblemDetail => $detail,
+ ProblemType => ($type) ? $type : 'Temporary Processing Failure',
+ ProblemDetail => ($detail) ? $detail : 'Detail not available.',
ProblemElement => ($element) ? $element : 'NULL',
ProblemValue => ($value) ? $value : 'NULL'
}