# Error handling
<subtitle>Handling errors in templates</subtitle>

The SDK provides specific error types:

```python
from ucloud_sandbox import AuthError, BuildError, FileUploadError

try:
    Template.build(template, 'my-template')
except AuthError as error:
    print(f"Authentication failed: {error}")
except FileUploadError as error:
    print(f"File upload failed: {error}")
except BuildError as error:
    print(f"Build failed: {error}")
```
