index/variables/ERROR_CODES.md
constERROR_CODES:object
Standard error codes for ValidationError
Use these constants instead of string literals for:
- IDE autocomplete support
- Typo prevention
- Consistent error handling across the SDK
Type Declaration
array too large empty invalid data fee tier format parameters range tick spacing type value not found long short small zero
Example
import { ValidationError, ERROR_CODES } from '../utils/errors';
throw new ValidationError('tokenName is required', 'tokenName', ERROR_CODES.REQUIRED);
Since
6.3.0