getRight method

  1. @override
R getRight()
override

Returns the Right value if this is a Right, otherwise throws.

Implementation

@override
R getRight() {
  throw Exception("getRight() called on Left");
}