make use of custom exception class from sdk