[fixes: #6, #49681391] Added a custom exception and