Paginates a collection: return how many elements you want (which also represent the number of
elements per "page" and an optional offset representing at which "page" to start
This method is the opposite of extractFullStackTrace(Throwable) and will attempt
to "deserialize" the full stack trace into the original exception including all the chain
of causes.