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
@@ -418,6 +418,85 @@ Returns one of the `integer` `OS_*` parameters representing the OS type, from th
418
418
419
419
---
420
420
421
+
## `FS_ERROR` - Helper function for error handling
422
+
423
+
### Status
424
+
425
+
Experimental
426
+
427
+
### Description
428
+
429
+
A helper function for returning the `type(state_type)` with the flag `STDLIB_FS_ERROR` set.
430
+
431
+
### Syntax
432
+
433
+
`err = FS_ERROR([a1,a2,a3,a4...... a20])`
434
+
435
+
### Class
436
+
Pure Function
437
+
438
+
### Arguments
439
+
440
+
`a1,a2,a3.....a20`(optional): They are of type `class(*), dimension(..), optional, intent(in)`.
441
+
An arbitrary list of `integer`, `real`, `complex`, `character` or `string_type` variables. Numeric variables may be provided as either scalars or rank-1 (array) inputs.
442
+
443
+
### Behavior
444
+
445
+
Formats all the arguments into a nice error message, utilizing the constructor of [[stdlib_system(module):state_type(type)]]
446
+
447
+
### Return values
448
+
449
+
`type(state_type)`
450
+
451
+
### Example
452
+
453
+
```fortran
454
+
{!example/system/example_fs_error.f90!}
455
+
```
456
+
457
+
---
458
+
459
+
## `FS_ERROR_CODE` - Helper function for error handling (with error code)
460
+
461
+
### Status
462
+
463
+
Experimental
464
+
465
+
### Description
466
+
467
+
A helper function for returning the `type(state_type)` with the flag `STDLIB_FS_ERROR` set.
468
+
It also formats and prefixes the `code` passed to it as the first argument.
`a1,a2,a3.....a19`(optional): They are of type `class(*), dimension(..), optional, intent(in)`.
482
+
An arbitrary list of `integer`, `real`, `complex`, `character` or `string_type` variables. Numeric variables may be provided as either scalars or rank-1 (array) inputs.
483
+
484
+
### Behavior
485
+
486
+
Formats all the arguments into a nice error message, utilizing the constructor of [[stdlib_system(module):state_type(type)]]
487
+
488
+
### Return values
489
+
490
+
`type(state_type)`
491
+
492
+
### Example
493
+
494
+
```fortran
495
+
{!example/system/example_fs_error.f90!}
496
+
```
497
+
498
+
---
499
+
421
500
## `is_directory` - Test if a path is a directory
422
501
423
502
### Status
@@ -431,7 +510,7 @@ It is designed to work across multiple platforms. On Windows, paths with both fo
0 commit comments