mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-05-29 22:48:16 +02:00
Add KernelError to report miscellaneous kernel errors.
This commit is contained in:
parent
257df96b12
commit
72ea47bfb3
@ -89,6 +89,9 @@ file-info: 98
|
||||
# Invalid JSON format. Eventually this should be a child of format error and share the same code
|
||||
json-format: 99
|
||||
|
||||
# An error from the kernel that there's nothing we can do about. It should always be fatal.
|
||||
kernel: 100
|
||||
|
||||
# This error should not be thrown directly -- it serves as a parent for the C errors
|
||||
runtime: 122
|
||||
|
||||
|
@ -110,6 +110,10 @@
|
||||
<p>Add <code>THROW*_ON_SYS_ERROR*</code> macros to test and throw system errors.</p>
|
||||
</release-item>
|
||||
|
||||
<release-item>
|
||||
<p>Add <code>KernelError</code> to report miscellaneous kernel errors.</p>
|
||||
</release-item>
|
||||
|
||||
<release-item>
|
||||
<p><code>Storage</code> interface methods no longer declare the driver as const.</p>
|
||||
</release-item>
|
||||
|
@ -167,6 +167,8 @@ use constant ERROR_FILE_INFO => 98;
|
||||
push @EXPORT, qw(ERROR_FILE_INFO);
|
||||
use constant ERROR_JSON_FORMAT => 99;
|
||||
push @EXPORT, qw(ERROR_JSON_FORMAT);
|
||||
use constant ERROR_KERNEL => 100;
|
||||
push @EXPORT, qw(ERROR_KERNEL);
|
||||
use constant ERROR_RUNTIME => 122;
|
||||
push @EXPORT, qw(ERROR_RUNTIME);
|
||||
use constant ERROR_INVALID => 123;
|
||||
|
@ -81,6 +81,7 @@ ERROR_DEFINE( 96, ParamInvalidError, RuntimeError);
|
||||
ERROR_DEFINE( 97, PathCloseError, RuntimeError);
|
||||
ERROR_DEFINE( 98, FileInfoError, RuntimeError);
|
||||
ERROR_DEFINE( 99, JsonFormatError, RuntimeError);
|
||||
ERROR_DEFINE(100, KernelError, RuntimeError);
|
||||
ERROR_DEFINE(122, RuntimeError, RuntimeError);
|
||||
ERROR_DEFINE(123, InvalidError, RuntimeError);
|
||||
ERROR_DEFINE(124, UnhandledError, RuntimeError);
|
||||
@ -165,6 +166,7 @@ static const ErrorType *errorTypeList[] =
|
||||
&PathCloseError,
|
||||
&FileInfoError,
|
||||
&JsonFormatError,
|
||||
&KernelError,
|
||||
&RuntimeError,
|
||||
&InvalidError,
|
||||
&UnhandledError,
|
||||
|
@ -83,6 +83,7 @@ ERROR_DECLARE(ParamInvalidError);
|
||||
ERROR_DECLARE(PathCloseError);
|
||||
ERROR_DECLARE(FileInfoError);
|
||||
ERROR_DECLARE(JsonFormatError);
|
||||
ERROR_DECLARE(KernelError);
|
||||
ERROR_DECLARE(RuntimeError);
|
||||
ERROR_DECLARE(InvalidError);
|
||||
ERROR_DECLARE(UnhandledError);
|
||||
|
@ -5216,6 +5216,8 @@ static const EmbeddedModule embeddedModule[] =
|
||||
"push @EXPORT, qw(ERROR_FILE_INFO);\n"
|
||||
"use constant ERROR_JSON_FORMAT => 99;\n"
|
||||
"push @EXPORT, qw(ERROR_JSON_FORMAT);\n"
|
||||
"use constant ERROR_KERNEL => 100;\n"
|
||||
"push @EXPORT, qw(ERROR_KERNEL);\n"
|
||||
"use constant ERROR_RUNTIME => 122;\n"
|
||||
"push @EXPORT, qw(ERROR_RUNTIME);\n"
|
||||
"use constant ERROR_INVALID => 123;\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user