Function that throws detailed error using additional location information based on AnimSequence and its parent AnimTimeline.
If an Error instance is passed, the location is appended to it.
The Error instance to attach the location information to
If an Error class function is passed, it is used to create an Error instance with the msg parameter as the error message.
msg
The Error class that will be instantiated
The error message that will appear before the location information
Function that throws detailed error using additional location information based on AnimSequence and its parent AnimTimeline.