Fatal error: Cannot redeclare class OAuthException

Solution

/immocaster/Oauth/OAuth.php

<?php
    /* Generic exception class
     */

    // schmelzer, 24. Feb. 2014
    // Enclosed class definition by if()
    // To avoid PHP Error. Tested with PHP 5.3/liip.ch
    // --
    // http://wordpress.org/support/topic/fatal-error-cannot-redeclare-class-oauthexception
    // Related to
    // https://github.com/abraham/twitteroauth/blob/master/twitteroauth/OAuth.php

    if (!class_exists('OAuthException')) {
        class OAuthException extends Exception {

            // pass
        }

    }

PHP