Package edu.villanova.studs.poker.exceptions

Examples of edu.villanova.studs.poker.exceptions.CalcEngineException


            setCommunityCards( ((TableDataCommunity)td).getGameTable().getCommunity() );
        } catch ( Exception e ) {
            //There was a processing error somewhere.  Build a new exception
            //with a message indicating where the failure occurred and the root
            //cause.  Re-throw the error as a calc engine exception
            throw new CalcEngineException( PokerMessages.SETUP_FAILED,
                                           new Object[]
                                            { PokerMessages.TRANSLATE_ARG,
                                              errMsg}, e );
        }
    }
View Full Code Here


        } catch ( SimulatorException e )  {
          e.printStackTrace(System.out);
            //There was a processing error somewhere.  Build a new exception
            //with a message indicating where the failure occurred and the root
            //cause.  Re-throw the error for the calling method to handle
            throw new CalcEngineException( PokerMessages.CALC_FAILED,
                                           new Object[]
                                            { PokerMessages.TRANSLATE_ARG,
                                              errMsg}, e );
   
        }
View Full Code Here

            p.addCard( new Card(1,2) );
            td.addPlayer( p );
            td.addPlayer( new Player() );
        } catch (TransportException e) {
          e.printStackTrace(System.out);
            CalcEngineException ex = new CalcEngineException( "My message" , e);
            System.out.println(ex.getLocalizedMessage( Locale.GERMAN) );
            return;
        }
        opts.put( CalcEngineFactory.ENGINE_PROPH_SIMS, -1 );
        td.setOptions( opts );
       
View Full Code Here

TOP

Related Classes of edu.villanova.studs.poker.exceptions.CalcEngineException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.