Errors
SDK errors are structured:
NooschainSdkError: base SDK error.NooschainValidationError: local payload or input validation failed.NooschainHttpError: node API returned a non-2xx response.
HTTP errors include status, method, path, and a redacted response body when available.
Typical handling:
ts
try {
await client.transactions.submit(transaction);
} catch (error) {
if (error instanceof NooschainHttpError) {
console.error(error.status, error.method, error.path);
}
throw error;
}Validation errors usually mean the SDK rejected local input before submitting. HTTP errors mean the node rejected or failed the request. A successful transaction submission still only means the node accepted the transaction for processing; contract execution or consensus validation can still fail later and should be checked through transaction receipts or contract call results.