diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2022-10-06 16:06:52 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2022-10-06 16:06:52 -0400 |
commit | 34bfedcd1e5e67b630fb7648cf7709d4a400abc5 (patch) | |
tree | 39e67665f900200e85c7ff8f50353525e23b95de /libtnsl/box/error.tnsl | |
parent | 5379b962bc177f26f550a23fb9685ca49a048076 (diff) |
Minor fixes
Diffstat (limited to 'libtnsl/box/error.tnsl')
-rw-r--r-- | libtnsl/box/error.tnsl | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libtnsl/box/error.tnsl b/libtnsl/box/error.tnsl new file mode 100644 index 0000000..d536012 --- /dev/null +++ b/libtnsl/box/error.tnsl @@ -0,0 +1,38 @@ +/## + Copyright 2021-2022 Kyle Gunger + + Dual licensed under the CDDL 1.0 and BSD 3-Clause licenses. + + This file may only be used in accordance with one of the two + licenses. You should have received a copy of each license with + the source code. In the event that you did not recieve a copy + of the licenses, they may be found at the following URLs: + + CDDL 1.0: + https://opensource.org/licenses/CDDL-1.0 + + BSD 3-Clause: + https://opensource.org/licenses/BSD-3-Clause + + THIS SOFTWARE/SOURCE CODE IS PROVIDED "AS IS" WITH NO + WARRANTY, GUARANTEE, OR CLAIM OF FITNESS FOR ANY PURPOSE + EXPRESS OR IMPLIED +#/ + +;enum ERROR_CODE [uint] { + OUT_OF_RANGE +} + +;struct Error { + String msg, + uint code, + ~void data +} + +/; method Error + /; Error (String msg, uint code) + ;self.msg = msg + ;self.code = code + ;self.data = null + ;/ +;/
\ No newline at end of file |