cleanup: use class for MatrixError
cleanup: use class for MatrixError

this way we get stacktraces as well

matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk