---
name: "UR::ObjectDeprecated"
section: "3pm"
platform: "linux"
package: "libur-perl"
version: "0.470+ds-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/UR::ObjectDeprecated"
---

# UR::ObjectDeprecated(3pm)

- message\_callback

  ```
    $sub_ref = UR::ModuleBase->message_callback($type);
    UR::ModuleBase->message_callback($type, $sub_ref);
  ```

  This method returns and optionally sets the subroutine that handles messages of a specific type.
