Skip to content

Commit

Permalink
fixup! EZP-29106: Partial refactored eZ/Publish/Core/REST/Server/Outp…
Browse files Browse the repository at this point in the history
…ut/ValueObjectVisitor/** to be able to add custom attributes in descendants classes
  • Loading branch information
adamwojs committed May 8, 2018
1 parent a4c84fb commit ae1063e
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -14,6 +14,7 @@
use eZ\Publish\Core\REST\Server\Values\VersionTranslationInfo as VersionTranslationInfoValue;
use eZ\Publish\API\Repository\Values;
use eZ\Publish\API\Repository\Values\Content\VersionInfo as VersionInfoValue;
use RuntimeException;

/**
* VersionInfo value object visitor.
Expand Down Expand Up @@ -55,7 +56,7 @@ protected function getStatusString($status)
}

// @todo FIXME: What exception to use?
throw new \Exception('Undefined version status: ' . $status);
throw new RuntimeException('Undefined version status: ' . $status);
}

protected function visitVersionInfoAttributes(Visitor $visitor, Generator $generator, VersionInfoValue $versionInfo)
Expand Down

0 comments on commit ae1063e

Please sign in to comment.