create

fun create(errorType: RouteErrorType, message: String): RouteError

Creates a new RouteError with the given type and message.