Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 328 Bytes

Exceptions.md

File metadata and controls

11 lines (10 loc) · 328 Bytes

异常 Exceptions

try {
    // 异常处理标准库
    throw new \Exceptions\Data\NotFoundException();
} catch (\Exceptions\Data\NotFoundException $e) {
    $this->assertEquals('Data requested for cannot be found in the data source.', $e->getMessage());
}
文档 https://github.com/crazycodr/standard-exceptions