package examples.mega.client;

import java.rmi.RemoteException;

public class Exceptions{

  public void invoke( MegaPort port ) throws RemoteException,
      InvokeFailedException {

    try{
      port.methodThrowingRuntimeException();
      throw new InvokeFailedException( "methodThrowingRuntimeException" );
    }catch( RemoteException e ){
    }

    try{
      port.methodThrowingSoapFault();
      throw new InvokeFailedException( "methodThrowingSoapFault" );
    }catch( RemoteException e ){
    }

    try{
      port.methodThrowingCustomException();
      throw new InvokeFailedException( "methodThrowingCustomException" );
    }catch( MegaServiceException e ){
    }
  }
}

