getPortal

Returns a Portal object given the name of the portal. If the portal does not exist, an exception is thrown.

Example usage (kotlin):

val portal: Portal = PortalManager.getPortal("my_portal")

Example usage (java):

Portal portal = PortalManager.getPortal("my_portal");

Parameters

name

the portal name

Throws

NoSuchElementException

throws this exception if the Portal does not exist