You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Library will throw UserException, it's message can be shown to the user.
142
+
142
143
```php
143
144
try {
144
145
(new \Done\Subtitles\Subtitles())->add(0, 1, 'very long text... aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')->content('scc');
echo $e->getMessage(); // SCC file can't have more than 4 lines of text each 32 characters long. This text is too long: <textfromuserfilethattriggeredthiserror>
147
148
}
148
149
```
149
150
By default, library tries to detect different file errors that can be shown to the user, so he would be able to fix them.
150
151
If you want to relax the rules and allow the library to convert even somewhat invalid files, use ['strict' => false]
0 commit comments