Liking cljdoc? Tell your friends :D

quartermaster.error


manager-errorcljmacro

(manager-error subtype detail-str data)
(manager-error subtype detail-str data cause)

Records this raise-site under :quartermaster/<subtype> in recide.impl/default-error-definition, and expands into the equivalent of:

   (error (str "<subtype-generic-str>: " detail-str)
          :quartermaster/<subtype>
          cause)

The following map shows, for each subtype, what keywords are required in the data map, and what the generic portion of the string will be:

{:reacquire-error {:required #{:rm-id}, :generic-str "Error in reacquiring resource"}, :no-such-resource {:required #{:rm-id}, :generic-str "No such resource exists"}, :terminate-error {:required #{:rm-id}, :generic-str "Error in terminating resource"}, :no-such-handle {:required #{:rm-id}, :generic-str "The specified user has no handle on this resource"}, :discriminate-error {:required #{:rm-id}, :generic-str "Error in uniqueness resolution"}, :initiate-error {:required #{:rm-id}, :generic-str "Error in initiating resource"}, :reinitiate-error {:required #{:rm-id}, :generic-str "Error in reinitiating resource"}, :bizarre {:required #{:rm-id}, :generic-str "A bizarre error occured in a resource manager"}, :construct-error {:required #{:rm-id}, :generic-str "Error in constructing resource"}, :swap-error {:required #{:rm-id}, :generic-str "Error when swapping a resource"}}

Records this raise-site under :quartermaster/<subtype> in recide.impl/default-error-definition, and expands into the
          equivalent of:

       (error (str "<subtype-generic-str>: " detail-str)
              :quartermaster/<subtype>
              cause)

The following map shows, for each subtype, what keywords are required in
the data map, and what the generic portion of the string will be:

   {:reacquire-error {:required #{:rm-id},
                     :generic-str "Error in reacquiring resource"},
   :no-such-resource {:required #{:rm-id},
                      :generic-str "No such resource exists"},
   :terminate-error {:required #{:rm-id},
                     :generic-str "Error in terminating resource"},
   :no-such-handle {:required #{:rm-id},
                    :generic-str "The specified user has no handle on this resource"},
   :discriminate-error {:required #{:rm-id},
                        :generic-str "Error in uniqueness resolution"},
   :initiate-error {:required #{:rm-id},
                    :generic-str "Error in initiating resource"},
   :reinitiate-error {:required #{:rm-id},
                      :generic-str "Error in reinitiating resource"},
   :bizarre {:required #{:rm-id},
             :generic-str "A bizarre error occured in a resource manager"},
   :construct-error {:required #{:rm-id},
                     :generic-str "Error in constructing resource"},
   :swap-error {:required #{:rm-id},
                :generic-str "Error when swapping a resource"}}
sourceraw docstring

raise-manager-errorcljmacro

(raise-manager-error subtype detail-str data)
(raise-manager-error subtype detail-str data cause)

Records this raise-site under :quartermaster/<subtype> in recide.impl/default-error-definition and expands into:

   (raise :quartermaster/<subtype>
          (str "<subtype-generic-str>: " detail-str)
          data
          cause)

The following map shows, for each subtype, what keywords are required in the data map, and what the generic portion of the string will be:

{:reacquire-error {:required #{:rm-id}, :generic-str "Error in reacquiring resource"}, :no-such-resource {:required #{:rm-id}, :generic-str "No such resource exists"}, :terminate-error {:required #{:rm-id}, :generic-str "Error in terminating resource"}, :no-such-handle {:required #{:rm-id}, :generic-str "The specified user has no handle on this resource"}, :discriminate-error {:required #{:rm-id}, :generic-str "Error in uniqueness resolution"}, :initiate-error {:required #{:rm-id}, :generic-str "Error in initiating resource"}, :reinitiate-error {:required #{:rm-id}, :generic-str "Error in reinitiating resource"}, :bizarre {:required #{:rm-id}, :generic-str "A bizarre error occured in a resource manager"}, :construct-error {:required #{:rm-id}, :generic-str "Error in constructing resource"}, :swap-error {:required #{:rm-id}, :generic-str "Error when swapping a resource"}}

Records this raise-site under :quartermaster/<subtype> in recide.impl/default-error-definition and expands into:

       (raise :quartermaster/<subtype>
              (str "<subtype-generic-str>: " detail-str)
              data
              cause)

The following map shows, for each subtype, what keywords are required in
the data map, and what the generic portion of the string will be:

   {:reacquire-error {:required #{:rm-id},
                     :generic-str "Error in reacquiring resource"},
   :no-such-resource {:required #{:rm-id},
                      :generic-str "No such resource exists"},
   :terminate-error {:required #{:rm-id},
                     :generic-str "Error in terminating resource"},
   :no-such-handle {:required #{:rm-id},
                    :generic-str "The specified user has no handle on this resource"},
   :discriminate-error {:required #{:rm-id},
                        :generic-str "Error in uniqueness resolution"},
   :initiate-error {:required #{:rm-id},
                    :generic-str "Error in initiating resource"},
   :reinitiate-error {:required #{:rm-id},
                      :generic-str "Error in reinitiating resource"},
   :bizarre {:required #{:rm-id},
             :generic-str "A bizarre error occured in a resource manager"},
   :construct-error {:required #{:rm-id},
                     :generic-str "Error in constructing resource"},
   :swap-error {:required #{:rm-id},
                :generic-str "Error when swapping a resource"}}
sourceraw docstring

raise-terminatedcljmacro

(raise-terminated detail-str data)
(raise-terminated detail-str data cause)

Records this raise-site under :quartermaster/resource-terminated in recide, and expands into:

(raise :quartermaster/resource-terminated (str "Terminated resource: " detail-str) data cause)

Records this raise-site under :quartermaster/resource-terminated in recide, and expands into:

(raise :quartermaster/resource-terminated
       (str "Terminated resource: " detail-str)
       data
       cause)

sourceraw docstring

terminatedcljmacro

(terminated detail-str data)
(terminated detail-str data cause)

Records this raise-site under :quartermaster/resource-terminated in recide.impl/default-error-definition, and expands into the equivalent of:

(error :quartermaster/resource-terminated (str "Terminated resource: " detail-str) data cause)

Records this raise-site under :quartermaster/resource-terminated in recide.impl/default-error-definition, and expands into the equivalent of:

(error :quartermaster/resource-terminated
       (str "Terminated resource: " detail-str)
       data
       cause)

sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close