Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.pubnub.api;

PubnubException is thrown by various Pubnub APIs

Author(s):
PubnubCore
 
 public class PubnubException extends Exception {
     private String errormsg = "";
Constructor for PubnubException Class with error message as argument

Parameters:
s Error message
    public PubnubException(String s) {
        this. = s;
    }

    
Constructor for PubnubException Class with error message as argument

Parameters:
pubnubError Error message
    public PubnubException(PubnubError pubnubError) {
        this. = pubnubError;
    }

    
Constructor for PubnubException Class with error message as argument

Parameters:
s Error message
    public PubnubException(PubnubError pubnubErrorString s) {
        this. = s;
        this. = pubnubError;
    }


    
Read the exception error message

Returns:
String
    public String toString() {
        String msg = .toString();
        if (.length() > 0 )
            msg = msg + " . " + ;
        return msg;
    }
    public PubnubError getPubnubError() {
        return ;
    }
New to GrepCode? Check out our FAQ X