hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

common.ha (1353B)


      1 // SPDX-License-Identifier: MPL-2.0
      2 // (c) Hare authors <https://harelang.org>
      3 
      4 // The requested resource is not available.
      5 export type busy = !void;
      6 
      7 // An attempt was made to create a resource which already exists.
      8 export type exists = !void;
      9 
     10 // A function was called with an invalid combination of arguments.
     11 export type invalid = !void;
     12 
     13 // The user does not have permission to use this resource.
     14 export type noaccess = !void;
     15 
     16 // An entry was requested which does not exist.
     17 export type noentry = !void;
     18 
     19 // The requested operation caused a numeric overflow condition.
     20 export type overflow = !void;
     21 
     22 // The requested operation is not supported.
     23 export type unsupported = !void;
     24 
     25 // The requested operation timed out.
     26 export type timeout = !void;
     27 
     28 // The requested operation was cancelled.
     29 export type cancelled = !void;
     30 
     31 // A connection attempt was refused.
     32 export type refused = !void;
     33 
     34 // Unable to allocate sufficient memory for the requested operation.
     35 export type nomem = !void;
     36 
     37 // An operation was interrupted.
     38 export type interrupted = !void;
     39 
     40 // The user should attempt an operation again.
     41 export type again = !void;
     42 
     43 // A tagged union of all error types.
     44 export type error = !(
     45 	busy |
     46 	exists |
     47 	invalid |
     48 	noaccess |
     49 	noentry |
     50 	overflow |
     51 	unsupported |
     52 	timeout |
     53 	cancelled |
     54 	refused |
     55 	nomem |
     56 	interrupted |
     57 	again |
     58 	opaque_
     59 );