Code example for RuntimeException

0
m_ServerRequest = new UploadAssetRequest();
            } 
            break; 
         default: 
            throw new RuntimeException("WRONG SERVER REQUEST");
      } 
   } 
    
   //Serialization 
   public void save(ObjectOutputStream objstream) throws IOException 
   { 
      objstream.writeObject(this);
   } 
    
   //De-Serialization 
   public static FileUploadServerInterface load(ObjectInputStream objstream ) throws Exception 
   { 
      FileUploadServerInterface reqObj = (FileUploadServerInterface) objstream.readObject();
      return reqObj;
   }