private void throwPageMigratedException ( String msg , int code , int subcode , String userTitle , String userMsg ) { // This SUCKS ASS. Messages look like: // (#21) Page ID 114267748588304 was migrated to page ID 111013272313096. Please update your API calls to the new ID Matcher matcher = ID_PATTERN . matcher ( msg ) ; long oldId = this . extractNextId ( matcher , msg ) ; long newId = this . extractNextId ( matcher , msg ) ; throw new PageMigratedException ( msg , code , subcode , userTitle , userMsg , oldId , newId ) ; }
Builds the proper exception and throws it .