Our classes extend both Controller and ApiController, so we need to use traits to add some common methods
package |
OCA\Gallery\Controller |
---|
getHttpStatusCode( $exception) : \OCA\Gallery\Controller\array<null|integer|\OCA\Gallery\Controller\string>
\OCA\Gallery\Controller\array
htmlError(\OCP\IURLGenerator $urlGenerator, string $appName, \Exception $exception) : \OCP\AppFramework\Http\RedirectResponse
\OCP\IURLGenerator
string
\Exception
\OCP\AppFramework\Http\RedirectResponse
jsonError(\Exception $exception) : \OCP\AppFramework\Http\JSONResponse
\Exception
\OCP\AppFramework\Http\JSONResponse