Module: BetterJira::Exceptions

Defined in:
lib/better_jira/exceptions.rb

Defined Under Namespace

Classes: JiraException, NoSuchIssueException

Class Method Summary collapse

Class Method Details

.wrap_soapObject



3
4
5
6
7
8
9
10
11
12
# File 'lib/better_jira/exceptions.rb', line 3

def self.wrap_soap
  begin
    yield
  rescue SOAP::FaultError
    case $!.faultstring.data
    when "com.atlassian.jira.rpc.exception.RemotePermissionException: This issue does not exist or you don't have permission to view it."
      raise NoSuchIssueException, "This issue does not exist or you don't have permission to view it."
    end
  end
end