Java Code Examples for com.oracle.webservices.internal.api.databinding.JavaCallInfo#setException()

The following examples show how to use com.oracle.webservices.internal.api.databinding.JavaCallInfo#setException() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StubHandler.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public JavaCallInfo readResponse(Packet p, JavaCallInfo call) throws Throwable {
        Message msg = p.getMessage();
if(msg.isFault()) {
    SOAPFaultBuilder faultBuilder = SOAPFaultBuilder.create(msg);
    Throwable t = faultBuilder.createException(checkedExceptions);
    call.setException(t);
    throw t;
} else {
        initArgs(call.getParameters());
    Object ret = responseBuilder.readResponse(msg, call.getParameters());
    call.setReturnValue(ret);
    return call;
}
}
 
Example 2
Source File: DatabindingImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public JavaCallInfo deserializeResponse(Packet res, JavaCallInfo call) {
    StubHandler stubHandler = stubHandlers.get(call.getMethod());
    try {
        return stubHandler.readResponse(res, call);
    } catch (Throwable e) {
        call.setException(e);
        return call;
    }
}
 
Example 3
Source File: StubHandler.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public JavaCallInfo readResponse(Packet p, JavaCallInfo call) throws Throwable {
        Message msg = p.getMessage();
if(msg.isFault()) {
    SOAPFaultBuilder faultBuilder = SOAPFaultBuilder.create(msg);
    Throwable t = faultBuilder.createException(checkedExceptions);
    call.setException(t);
    throw t;
} else {
        initArgs(call.getParameters());
    Object ret = responseBuilder.readResponse(msg, call.getParameters());
    call.setReturnValue(ret);
    return call;
}
}
 
Example 4
Source File: DatabindingImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public JavaCallInfo deserializeResponse(Packet res, JavaCallInfo call) {
    StubHandler stubHandler = stubHandlers.get(call.getMethod());
    try {
        return stubHandler.readResponse(res, call);
    } catch (Throwable e) {
        call.setException(e);
        return call;
    }
}
 
Example 5
Source File: StubHandler.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public JavaCallInfo readResponse(Packet p, JavaCallInfo call) throws Throwable {
        Message msg = p.getMessage();
if(msg.isFault()) {
    SOAPFaultBuilder faultBuilder = SOAPFaultBuilder.create(msg);
    Throwable t = faultBuilder.createException(checkedExceptions);
    call.setException(t);
    throw t;
} else {
        initArgs(call.getParameters());
    Object ret = responseBuilder.readResponse(msg, call.getParameters());
    call.setReturnValue(ret);
    return call;
}
}
 
Example 6
Source File: DatabindingImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public JavaCallInfo deserializeResponse(Packet res, JavaCallInfo call) {
    StubHandler stubHandler = stubHandlers.get(call.getMethod());
    try {
        return stubHandler.readResponse(res, call);
    } catch (Throwable e) {
        call.setException(e);
        return call;
    }
}
 
Example 7
Source File: StubHandler.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public JavaCallInfo readResponse(Packet p, JavaCallInfo call) throws Throwable {
        Message msg = p.getMessage();
if(msg.isFault()) {
    SOAPFaultBuilder faultBuilder = SOAPFaultBuilder.create(msg);
    Throwable t = faultBuilder.createException(checkedExceptions);
    call.setException(t);
    throw t;
} else {
        initArgs(call.getParameters());
    Object ret = responseBuilder.readResponse(msg, call.getParameters());
    call.setReturnValue(ret);
    return call;
}
}
 
Example 8
Source File: DatabindingImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public JavaCallInfo deserializeResponse(Packet res, JavaCallInfo call) {
    StubHandler stubHandler = stubHandlers.get(call.getMethod());
    try {
        return stubHandler.readResponse(res, call);
    } catch (Throwable e) {
        call.setException(e);
        return call;
    }
}
 
Example 9
Source File: StubHandler.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public JavaCallInfo readResponse(Packet p, JavaCallInfo call) throws Throwable {
        Message msg = p.getMessage();
if(msg.isFault()) {
    SOAPFaultBuilder faultBuilder = SOAPFaultBuilder.create(msg);
    Throwable t = faultBuilder.createException(checkedExceptions);
    call.setException(t);
    throw t;
} else {
        initArgs(call.getParameters());
    Object ret = responseBuilder.readResponse(msg, call.getParameters());
    call.setReturnValue(ret);
    return call;
}
}
 
Example 10
Source File: DatabindingImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public JavaCallInfo deserializeResponse(Packet res, JavaCallInfo call) {
    StubHandler stubHandler = stubHandlers.get(call.getMethod());
    try {
        return stubHandler.readResponse(res, call);
    } catch (Throwable e) {
        call.setException(e);
        return call;
    }
}
 
Example 11
Source File: StubHandler.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public JavaCallInfo readResponse(Packet p, JavaCallInfo call) throws Throwable {
        Message msg = p.getMessage();
if(msg.isFault()) {
    SOAPFaultBuilder faultBuilder = SOAPFaultBuilder.create(msg);
    Throwable t = faultBuilder.createException(checkedExceptions);
    call.setException(t);
    throw t;
} else {
        initArgs(call.getParameters());
    Object ret = responseBuilder.readResponse(msg, call.getParameters());
    call.setReturnValue(ret);
    return call;
}
}
 
Example 12
Source File: DatabindingImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public JavaCallInfo deserializeResponse(Packet res, JavaCallInfo call) {
    StubHandler stubHandler = stubHandlers.get(call.getMethod());
    try {
        return stubHandler.readResponse(res, call);
    } catch (Throwable e) {
        call.setException(e);
        return call;
    }
}
 
Example 13
Source File: StubHandler.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public JavaCallInfo readResponse(Packet p, JavaCallInfo call) throws Throwable {
        Message msg = p.getMessage();
if(msg.isFault()) {
    SOAPFaultBuilder faultBuilder = SOAPFaultBuilder.create(msg);
    Throwable t = faultBuilder.createException(checkedExceptions);
    call.setException(t);
    throw t;
} else {
        initArgs(call.getParameters());
    Object ret = responseBuilder.readResponse(msg, call.getParameters());
    call.setReturnValue(ret);
    return call;
}
}
 
Example 14
Source File: DatabindingImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public JavaCallInfo deserializeResponse(Packet res, JavaCallInfo call) {
    StubHandler stubHandler = stubHandlers.get(call.getMethod());
    try {
        return stubHandler.readResponse(res, call);
    } catch (Throwable e) {
        call.setException(e);
        return call;
    }
}
 
Example 15
Source File: StubHandler.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public JavaCallInfo readResponse(Packet p, JavaCallInfo call) throws Throwable {
        Message msg = p.getMessage();
if(msg.isFault()) {
    SOAPFaultBuilder faultBuilder = SOAPFaultBuilder.create(msg);
    Throwable t = faultBuilder.createException(checkedExceptions);
    call.setException(t);
    throw t;
} else {
        initArgs(call.getParameters());
    Object ret = responseBuilder.readResponse(msg, call.getParameters());
    call.setReturnValue(ret);
    return call;
}
}
 
Example 16
Source File: DatabindingImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public JavaCallInfo deserializeResponse(Packet res, JavaCallInfo call) {
    StubHandler stubHandler = stubHandlers.get(call.getMethod());
    try {
        return stubHandler.readResponse(res, call);
    } catch (Throwable e) {
        call.setException(e);
        return call;
    }
}