Added exceptions for recording api