///
module drmi.exceptions;

import drmi.types;

import std.conv : text;

///
class RMIProcessException : Exception
{
    ///
    RMIResponse res;
    ///
    this(RMIResponse r) { res = r; super("process error for " ~ text(r)); }
}

///
class RMITimeoutException : Exception
{
    ///
    RMICall call;
    ///
    this(RMICall c) { call = c; super("timeout for " ~ text(c)); }
}