Handling Errors

Where ever possible, our SDKs raise/throw exceptions when errors occur. The exception classes include the error message and errorCode property returned in the error object.

import skeddly

try:
    # Use the Skeddly SDK
    pass
except skeddly.ParameterValidationFailedException as e:
    print("Error Message: " + str(e))
    print("ErrorCode:" + e.errorCode)
    print("modelState: " + str(e.modelState))
except skeddly.SkeddlyWebException as e:
    print("Error Message: " + str(e))
    print("ErrorCode:" + e.errorCode)

Last updated