88 }
89 catch (InvalidArgumentException $e) {
90 throw new KControllerExceptionResourceNotFound('File not found');
91 }
92 }
93 else throw new KControllerExceptionResourceNotFound('File not found');
94 }
95 else throw new RuntimeException('Stream wrapper is missing');
96 }
97 else throw new KControllerExceptionResourceNotFound('Document not found');
98 }