Exception: Confluence::RemoteException

Inherits:
Exception
  • Object
show all
Defined in:
lib/confluence/confluence_rpc.rb

Direct Known Subclasses

RemoteAuthenticationException

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, type = nil) ⇒ RemoteException

Returns a new instance of RemoteException.



69
70
71
72
73
74
75
76
77
78
# File 'lib/confluence/confluence_rpc.rb', line 69

def initialize(msg = nil, type = nil)
  if msg.kind_of? XMLRPC::FaultException
    msg.faultString =~ /^.*?:\s(.*?):\s(.*)/
    msg = $2
    type = $1
  end

  super(msg)
  @type = type
end